Skip to content

Test-PSUAppToken #4573

Open
Feature
@adamdriscoll

Description

@adamdriscoll

Summary of the new feature / enhancement

We should have a way to test app tokens. This could be handy for accepting tokens in endpoints from non-default headers (e.g. X-Vendor-Token). The tokens would still need to be valid PSU tokens but we could invoke in the internal validation. It should return true\false similar to Test-Path.

Test-PSUToken -Token $TokenValue

We should also support inspecting parts of the token, like claims and identity name.

Test-PSUToken -Token $TokenValue -Role "Administrator"
Test-PSUToken -Token $TokenValue -Identity "Admin"

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CmdletsThis issue is related to Universal cmdlets.Area-SecurityThis issue is related to security features.Size - MThis issue is a medium amount of work.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions