Android Question OAuth2 login calling web browser

Joyrider74

New Member
Hello
Using the sample Google login project from this forum as a starting point I'm refactoring it to suit my requirement for OAuth2 login through a private provider.
I have it working so that the default browser is allowing the user to validate credentials, however I suspect my callback_uri is incorrect as the browser then remains open and displays a 404 and my app never receives the callback intent therefore no token.

Intent filter code added to manifest editor:
AddActivityText(Main,
  <intent-filter>
          <action android:name="android.intent.action.VIEW" />
          <category android:name="android.intent.category.DEFAULT" />
          <category android:name="android.intent.category.BROWSABLE" />
          <data android:scheme="$PACKAGE$" />
  </intent-filter>
   )

Activity main login button:
Private Sub btnLogon_Click
            
    oauth.Initialize(Me, "OAuth", "android", "jaccessclaims IdentityApi androidclaims")
    oauth.GetAccessToken
    Wait For OAuth_AccessTokenAvailable (Success As Boolean, Token As String)
        If Success = False Then
            ToastMessageShow("Error accessing account.", True)
            Return
        Else
            Log(Token)
            Starter.token = Token
        End If

End Sub



What format should the callback uri be in? Simply the application package name, or more?


Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…