Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Claim.value public #67

Closed
DeathByEnnui opened this issue Jun 5, 2018 · 5 comments
Closed

Make Claim.value public #67

DeathByEnnui opened this issue Jun 5, 2018 · 5 comments

Comments

@DeathByEnnui
Copy link

Right now Claim.value is not public. There is no direct way to pull out something like a Dictionary type directly. The simplest way would be to use .value and cast it, but it's not visible.

@suzukieng
Copy link

Agree, we use JWT to transport the users authorizations. This is an array, with the value being a complex type (role, entity)

@cocojoe
Copy link
Member

cocojoe commented Aug 10, 2018

This seems fair, I'm thinking

    /// original claim value
    public var rawValue: Any? {
        return self.value
    }

@suzukieng
Copy link

@cocojoe Feels right! raw implying that you're on your own if you're using it.

@suzukieng
Copy link

@cocojoe any ETA on when we can get this merged?

@cocojoe
Copy link
Member

cocojoe commented Oct 17, 2018

Sorry forgot about this, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants