You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for an issue that matches the one I want to file, without success.
Problem Description
I have been trying to use SourceHut as an OAuth2 connector in Dex. My problem is that SourceHut's API uses GraphQL which returns user information in a nested JSON object.
What I've got so far, I'm trying to use the following connector:
I can see in the code that the userIDKey is expecting only a top-level key, not nested. So of course my attempt at using data.me.id fails.
Proposed Solution
Some way to specify a userIDKey and other claims that can parse data out of a nested JSON structure. The "dot" notation I've tried would conflict with keys that actually have dots in them. Maybe a nested YAML definition?
userIDKey:
data:
me: id
Alternatives Considered
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Problem Description
I have been trying to use SourceHut as an OAuth2 connector in Dex. My problem is that SourceHut's API uses GraphQL which returns user information in a nested JSON object.
What I've got so far, I'm trying to use the following connector:
The
userInfoURL
is a GraphQL endpoint that returns something like:I can see in the code that the
userIDKey
is expecting only a top-level key, not nested. So of course my attempt at usingdata.me.id
fails.Proposed Solution
Some way to specify a
userIDKey
and other claims that can parse data out of a nested JSON structure. The "dot" notation I've tried would conflict with keys that actually have dots in them. Maybe a nested YAML definition?Alternatives Considered
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: