stormpath / Turnstile

An authentication framework for Swift.
Apache License 2.0
165 stars 29 forks source link

[WIP] Add an OpenID Connect class to be subclassed for the particular provider #13

Closed harlanhaskins closed 4 years ago

harlanhaskins commented 7 years ago

This PR tracks splitting off the OpenID Connect behavior out of the Google class into a more reusable OpenID Connect class.

edjiang commented 7 years ago

Looks like a great start! Just keep in mind: Turnstile is on 1.0, so we've guaranteed that we won't make any breaking changes to our dependencies until we hit 2.0 (look up semantic versioning).

The other thing: OpenID Connect specifies a "ID Token", which is a standard token that applications can use to verify people's identity. So our OpenID Connect class can actually generate a generic "account" based off that.