Not able to receive OpenIDClaim, RefreshToken and AccessToken in iOS 13+ with AeroGearOAuth2

10 views
Skip to first unread message

ram bind

unread,
Jun 2, 2020, 4:13:18 AM6/2/20
to Aerogear

Hi Team,
After successful login from safari back on app Not able to get the AccessToken and
RefreshToken. Please guide the flow to get the access token even already added the iOS app budle ID on keycloak server and Follow the following for configuring the Keycloak.

https://github.com/aerogear/aerogear-ios-oauth2#demo-apps


let keycloakConfig = KeycloakConfig(
clientId: "clientId name",
host: "http://host:9090",
realm: "realm name",
isOpenIDConnect: true)

let oauth2Module = AccountManager.addKeycloakAccount(config: keycloakConfig)
self.keycloakHttp.authzModule = oauth2Module
keycloakConfig.webView = .safariViewController
// DispatchQueue.global(qos: .background).async{
DispatchQueue.main.async {
oauth2Module.login

{(accessToken: AnyObject?, claims: OpenIdClaim?, error: NSError?) in print(accessToken.debugDescription) print(claims?.description as Any) print(error.debugDescription) }

}
// }

Reply all
Reply to author
Forward
0 new messages