Package com.broadleafcommerce.auth.user.autoconfigure.support.keys
package com.broadleafcommerce.auth.user.autoconfigure.support.keys
-
ClassesClassDescriptionProperties 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.
JWKSourceis used by components likeNimbusJwtEncoderto obtainJWKinstances for operations.This serves as aWebApplicationContext.SCOPE_REQUESTbean 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().