🚧 This functionality is currently untested in the most recent version (1.6.5) since I don't have a server to test against. If you use OpenID Auth and find errors, please contact me with information about your server so I can fix it 🚧
🗑️ If this functionality is not currently used, I might deprecate it in the next release and remove in 2 releases later. So if you do use this functionality, please speak up! 🗑️
The plugin currently supports login with generic OpenID providers, while a few additional configuration needed to be made in order for the plugin to function.
Note that currently this is a Android-Only feature, iOS will be supported soon.
To start using OpenID login, edit connection setting www/json/connectionConfig.json
.
A few key/value pairs are required:
-
method
: set the value of this key to beopenid-authutil
. -
discoveryURI
: this is where the OpenID configuration stored. More info about discovery/web finger can be found in the spec of OpenID. Note that if your discovery config is at, for example,https://example.com/.well-known/openid-configuration
, only put inhttps://example.com/
. Manual configuration will be supported in the future. -
clientID
: the client ID of the registered client. While client credential is also planning to be supported in the future, dynamic client registration is not yet planned to be supported. -
scope
: scope to be requested.openid email profile offline_access
should be sufficient at this point. Note thatoffline_access
should always be added in order to avoid token error when app is in background.
{
...
"android": {
"auth": {
"method": "openid-authutil",
"discoveryURI": "https://example.com/",
"clientID": "example-client-id",
"scope": "openid email profile offline_access"
}
},
...
}
- For Android,
android support
conflict found in development. The current workaround is to force all android support version to be the same. If some library needs higher android support version in the future, please bump up the version insrc/android/openid-config.gradle