Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
353 stars 108 forks source link

Steam support #40

Open mainrs opened 5 years ago

mainrs commented 5 years ago

Hey there,

I am currently looking for a library that I can use to obtain the user's ID via OpenID. The only thing that steam provides is the endpoint url. There is no client secret involved as far as I can tell and the API can merely be used to return the user ID. How would I use the package ? Is there some generic OpenID class?

Using that ID I'd like to make calls to the official web API using an API key. Would it be possible to write own annotations that can be used to generate an API class ? As far as I can tell it's just a normal json API, no authentication (except for the API key)

Clancey commented 5 years ago

It is a bit more complicated than that. Steam uses OpenID, which is a wrapper on top of OAuth. You should be able to use the OAuth client to do it. I haven't spent enough time looking into supporting OpenId, but it should be possible without too much work. https://openid.net/specs/openid-connect-core-1_0.html#CodeFlowSteps