TeamMaestro / capacitor-single-sign-on

10 stars 13 forks source link

[Need Help] : Azure sso ( callback not received) #11

Open GroupeBEL opened 4 years ago

GroupeBEL commented 4 years ago

Hello,

I'm trying to connect my application(ionic5/capacitor) to azure using sso , but I don't receive a callback.

I'm using as url :

 try {
      const response = await SingleSignOn.authenticate({
        url: 'https://myapps.microsoft.com/signin/appname/ID',
        // customScheme: 'customSchemeIfNeeded'
      });
      // this response will contain your completion URL with all your authorization keys used from the oauth callback
      console.log('call back received', response.url);
    } catch (error) {
      console.error(error);
    }

The authentication is done successfully and it navigate to the website not the application. when I try to cancel and go back to the app I receive this error:

{"errorMessage":"The operation couldn’t be completed. (com.apple.AuthenticationServices.WebAuthenticationSession error 1.)","message":"Error"}

any help please and thanks.

MaxInMoon commented 4 years ago

@webteambel did you succeed?