Back

42 School as OAuth2 with OpenID

  • 0
  • Flutter
  • Cloud
loup
8 Mar, 2024, 23:16

Okay I try to add my 42 school (with api) as Oauth option in flutter. Firstly, how can I know if my api from 42 School is compatible with OpenID (I dont really understand what is OpenID). Secondly, what is the name of the Oauth here ?

TypeScript
Future<models.Account> login() async {
    await _account.createOAuth2Session(provider: '');
    return _account.get();
}
TL;DR
Developers are trying to set up 42 School as OAuth2 with OpenID. They are confused about scopes and providers, and how to add a custom provider. They are unsure about OpenID and are encountering login issues. The solution is to use `oidc` as the provider in the Flutter code.
D5
8 Mar, 2024, 23:28

You put there openid

loup
8 Mar, 2024, 23:28

Okay the provider is oidc, but Im having a problem during login

loup
8 Mar, 2024, 23:29

But I dont understand what is openid ? Also there is another provider Auth0, is omething similar ?

D5
8 Mar, 2024, 23:29

Do you have set the openid credentials in the appwrite dashboard?

D5
8 Mar, 2024, 23:30

There are many providers. You can check all of them in the appwrite console

loup
8 Mar, 2024, 23:30

Yes but Im not sure if this is the good one

loup
8 Mar, 2024, 23:30

I wanna add a custom provider... that doesnt exist (42 school)

D5
8 Mar, 2024, 23:33

You will need to first know what protocol is the provider using (OAuth 2, etc.) They don't provide any references?

loup
8 Mar, 2024, 23:35

yes there is a reference : https://api.intra.42.fr/apidoc I guess its OAuth 2

loup
8 Mar, 2024, 23:36
loup
8 Mar, 2024, 23:41

I guess the problem come from the scope : scope=openid+profile+email (during oauth)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more