All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.amazon.lambda.http.LambdaHttpConfig Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.amazon.lambda.http;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

@ConfigRoot(phase = ConfigPhase.RUN_TIME)
public class LambdaHttpConfig {

    /**
     * If true, Quarkus will map claims from Cognito to Quarkus security roles.
     * The "cognito:groups" claim will be used by default. Change cognitoRoleClaim
     * config value to change the claim source.
     *
     * True by default
     */
    @ConfigItem(defaultValue = "true")
    public boolean mapCognitoToRoles;

    /**
     * Cognito claim that contains roles you want to map. Defaults to "cognito:groups"
     */
    @ConfigItem(defaultValue = "cognito:groups")
    public String cognitoRoleClaim;

    /**
     * Regular expression to locate role values within a Cognito claim string.
     * By default it looks for space delimited strings enclosed in brackets
     * "[^\[\] \t]+"
     */
    @ConfigItem(defaultValue = "[^\\[\\] \\t]+")
    public String cognitoClaimMatcher;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy