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
Hi, thanks for your lib, im tried to use but not working, here is example
let oauth2 = OAuth2CodeGrant(settings: [
"client_id": "",
"client_secret": "secret",
"response_type": "code token",
"grant_type": "hybrid",
"nonce": UUID.init().uuidString.replacingOccurrences(of: "/-/g", with: ""),
"authorize_uri": "",
"token_uri": "", // code grant only
"redirect_uris": ["://"], // register your own "myapp" scheme in Info.plist
"scope": "openid profile vxlink email",
"secret_in_body": true, // Github needs this
"keychain": false, // if you DON'T want keychain integration
] as OAuth2JSON)
But when i see the final url, the response_type always is "code", and "nonce" did not show.
So i tried to edit your lib(edit "response_type" and add "nonce" when generated url) -> It's working.
Hmmm, i have the bad ideal, that mean copy your lib into my project, but i got error "No such... SwiftKeychan", after a lot of searching i knew it's submodule, but i can find it in my project, So can you help me know how to solve this?
As the best solution is make config contain "response_type" and "nonce".
Find the submodule and paste to my project.
Sorry for my bad English
The text was updated successfully, but these errors were encountered:
The reason response_type is always "code" is probably cause it does not accept spaces... and nonce cause it does not seem to accept custom strings? At least the wont show up in the object
Hi, thanks for your lib, im tried to use but not working, here is example
let oauth2 = OAuth2CodeGrant(settings: [
"client_id": "",
"client_secret": "secret",
"response_type": "code token",
"grant_type": "hybrid",
"nonce": UUID.init().uuidString.replacingOccurrences(of: "/-/g", with: ""),
"authorize_uri": "",
"token_uri": "", // code grant only
"redirect_uris": ["://"], // register your own "myapp" scheme in Info.plist
"scope": "openid profile vxlink email",
"secret_in_body": true, // Github needs this
"keychain": false, // if you DON'T want keychain integration
] as OAuth2JSON)
But when i see the final url, the response_type always is "code", and "nonce" did not show.
So i tried to edit your lib(edit "response_type" and add "nonce" when generated url) -> It's working.
Hmmm, i have the bad ideal, that mean copy your lib into my project, but i got error "No such... SwiftKeychan", after a lot of searching i knew it's submodule, but i can find it in my project, So can you help me know how to solve this?
Sorry for my bad English
The text was updated successfully, but these errors were encountered: