auth
This
auth
section defines the configuration for generating and verifying OAuth2 JSON Web Token (JWT) authentication.
Note: This configuration section is required when using the OPE Gateway and Auth Center microservices.
Key | Description | Value |
---|---|---|
jwtexpiration
|
The JWT expiration time, in milliseconds. | Positive values only.
Default value:
Maximum value:
|
jwtsecret
|
The JWT secret. |
JSON arrays only. [ { "username":"admin", "password":"$2a$10$hzOJjNdnSZ4DNhs.P4v/dO46hxcW.M0jJHiCvQFSKBBhZO3nr2vuW", "tenant":"default", "roles":[ "admin", "user" ] }, { "username":"opes", "password":"$2a$04$1ULbrNGclQWB92AQJJ66/.gq3Q/iO.JSwjDFC9UoaoUQOAOd/Epsa", "tenant":"t1", "roles":[ "user" ] } ] |
userinfo
|
User configuration in JSON format.
Configuration includes username, password, tenant names, and roles. |
String only Default value:thisistopsecretccc3d9f9-5440-4605-bf82-469d647f739d |