app/controllers/allowlisted_jwts_controller.rb
# Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through .
def allowlisted_jwt_params
    return {} unless params.key? :allowlisted_jwt
    params.require(:allowlisted_jwt).permit(:label, :scope)
  end
def allowlisted_jwt_params return { } unless params . key? :allowlisted_jwt params . require ( :allowlisted_jwt ) . permit ( :label , :scope ) end
Only allow a list of trusted parameters through.
Only allow a list of trusted parameters through .