Even though the bundle start core plgd services as processes in a single container, a user has still a possibility to configure most of the services parameters. For testing purposes, the external OAuth Server (e.g. Auth0) can be set up. To skip the internal OAuth2.0 Mock Server and switch to your external one, configure the following environment variables:
OAUTH_AUDIENCE: https://api.example.com
OAUTH_ENDPOINT: auth.example.com
OAUTH_CLIENT_ID: ij12OJj2J23K8KJs
OAUTH_CLIENT_SECRET: 654hkja12asd123d
OWNER_CLAIM: sub
Assuming you have an account in the Auth0 OAuth as a service, you need to create 2 Applications and one API. Follow these steps to successfully configure the bundle to run against your Auth0 instance.
https://api.example.com
)openid
scope to the listNone
https://{FQDN}:{NGINX_PORT}
and https://{FQDN}:{NGINX_PORT}/api/authz/callback
to Allowed Callback URLshttps://{FQDN}:{NGINX_PORT}
to Allowed Logout URLshttps://{FQDN}:{NGINX_PORT}
to Allowed Web OriginsImplicit
, Authorization Code
and Refresh Token
grants are enabledPost
https://{FQDN}:{NGINX_PORT}
to Allowed Callback URLshttps://{FQDN}:{NGINX_PORT}
to Allowed Web OriginsClient Credentials
grant is enabledplgd makes it simpler to build a successful IoT initiative – to create a proof of concept, evaluate, optimize, and scale.