React-native-app-auth: More presets/examples

Created on 9 Feb 2018  路  5Comments  路  Source: FormidableLabs/react-native-app-auth

Would be nice to see sample configurations for more OAuth providers:

  • [x] GitHub
  • [ ] Auth0
  • [x] Slack
  • [ ] Microsoft Live
  • [ ] LinkedIn
  • [ ] Azure AD B2C (@imranolas?)
  • [x] Uber
  • [ ] OneLogin
  • [ ] Steam
  • [ ] Facebook
  • [ ] Twitter

We could consider adding common social providers as well (Facebook, Twitter), although these might be better served by their own native SDKs to benefit from the app-based login, so perhaps just link to them instead.

We can pick up some of the configurations here: https://github.com/fullstackreact/react-native-oauth/blob/3063886c162758278a0f54fe423ba74730bd1d92/lib/authProviders.js#L23-L77

Some more ideas: https://github.com/danielctull/DCTAuth#oauth-20

enhancement

Most helpful comment

Maybe Steam configuration? It would be grat.

All 5 comments

@jevakallio I think that it would be very useful if there are facebook/twitter configurations anyway. Currently I'm struggling to configure facebook auth only with react-native-app-auth.

Maybe Steam configuration? It would be grat.

Is the existing Azure Active Directory example applicable to B2C as well? I ask because I see its checked off, but I don't see B2C mentioned in the example.

Thanks!

Hi @askpatrickw - good callout - it's similar but not identical.

The issuer should be: https://fabrikamb2c.b2clogin.com/fabrikamb2c.onmicrosoft.com/b2c_1_sign_in/v2.0, but I think the rest is the same (v2 config example).

Could you let us know if this works for you? We can then update the docs to include an up to date B2C config.

Hi @askpatrickw - good callout - it's similar but not identical.

The issuer should be: https://fabrikamb2c.b2clogin.com/fabrikamb2c.onmicrosoft.com/b2c_1_sign_in/v2.0, but I think the rest is the same (v2 config example).

Could you let us know if this works for you? We can then update the docs to include an up to date B2C config.

I decided to go a different route. I could use AppCenter Auth to achieve similar functionality to this library (redirect to browser for Auth) and i've tested that works, but instead, I want a more native authentication flow within the RN app screens. So, I did not verify your library with B2C. I would say if your suggestion IS correct, fabrikamb2c should be replaced with your AD B2C Tenant name. I'm not 100% sure about the rest of the URL or the other Config values.

Best of luck!

Was this page helpful?
0 / 5 - 0 ratings