Package com.broadleafcommerce.auth.user.autoconfigure.support.keys
package com.broadleafcommerce.auth.user.autoconfigure.support.keys
-
ClassDescriptionProperties can be updated at runtime (ex: from Broadleaf Config Server), and therefore it is important that all components who need a particular signing/verification key are using an instance that matches the latest property value for that key.
JWKSource
is used by components likeNimbusJwtEncoder
to obtainJWK
instances for operations.This serves as aWebApplicationContext.SCOPE_REQUEST
bean to hold a stable, consistent value for public and private keys during a request lifecycle.This is a special 'smart key' bean that will always present the latest private key for AuthenticationServices based onAuthorizationServerProperties.OAuth2.getEncodedPrivateKey()
.This is a special 'smart key' bean that will always present the latest public key for AuthenticationServices based onAuthorizationServerProperties.OAuth2.getEncodedPublicKey()
.