okta / samples-ios

samples-ios
https://github.com/okta/samples-ios
Apache License 2.0
38 stars 27 forks source link

custom-sign-in example not retrieving tokens? #87

Closed bdruth closed 3 years ago

bdruth commented 3 years ago

Just trying to baseline get the custom-sign-in example working, after finding that the browser-sign-in flow is probably not going to meet my needs. browser-sign-in flow is working with my setup, and I can get the custom-sign-in flow to authenticate, but then it's unable to retrieve tokens and I'm not sure why?

The error that's pretty well buried is simply Authorization Error: Unexpected response format while retrieving authorization code.

I've messed with switching the issuer URL (as well as the urlString in the SignInViewController) between "https://dev-xxxxxx.okta.com/oauth2/default" and "https://dev-xxxxxx.okta.com/" - no difference in behavior. The stateManager is nil when the callback for oidcClient.authenticate(withSessionToken:...) is invoked.

image

oleggnidets-okta commented 3 years ago

Hi @bdruth, Apologies for late response.

Have you fixed the issue? What is your app configuration in Admin panel?

programmarchy commented 3 years ago

@oleggnidets-okta I have this issue, too.

Related: https://github.com/okta/okta-oidc-ios/issues/285

oleggnidets-okta commented 3 years ago

Closing this issue to not keep duplicates across repos. Thanks for reporting!