Amon2-Auth-Site-LINE

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

        "openid" and "email". See detail:
        <https://developers.line.biz/en/docs/line-login/integrate-line-login
        /#scope> Default value is "['profile']".

    nonce
        Optional. If you don't set nothing, it generates a random string.
        The "nonce" parameter is used a system for preventing replay attack
        / token interception attack on OpenID Connect. This attribute should
        not be set some foreseeable fixed value.

    prompt
        Optional. "consent" is acceptable.

    max_age
        Optional. Specified on OpenID Conjnect Core 1.0.

    ui_locales
        Optional. Specified on OpenID Conjnect Core 1.0.

    bot_prompt
        Optional. "normal" and "aggressive" are acceptable.

    state_session_key
        Optional. "state" parameter is kept on session with this specified
        session key during authentication. Default values
        "line_login_state".

    nonce_session_key
        Optional. "nonce" parameter is kept on session with this specified
        session key during. Default values "line_login_nonce".

README.md  view on Meta::CPAN

    API scope as an array-ref.
    Acceptable values are: `profile`, `openid` and `email`.
    See detail: [https://developers.line.biz/en/docs/line-login/integrate-line-login/#scope](https://developers.line.biz/en/docs/line-login/integrate-line-login/#scope)
    Default value is `['profile']`.

- nonce

    Optional. If you don't set nothing, it generates a random string.
    The `nonce` parameter is used a system for preventing replay attack / token interception attack on OpenID Connect. This attribute should not be set some foreseeable fixed value.

- prompt

    Optional. `consent` is acceptable.

- max\_age

    Optional. Specified on OpenID Conjnect Core 1.0.

- ui\_locales

    Optional. Specified on OpenID Conjnect Core 1.0.

- bot\_prompt

    Optional. `normal` and `aggressive` are acceptable.

- state\_session\_key

    Optional. `state` parameter is kept on session with this specified session key during authentication.
    Default values `line_login_state`.

- nonce\_session\_key

lib/Amon2/Auth/Site/LINE.pm  view on Meta::CPAN

    is      => 'ro',
    isa     => 'ArrayRef',
    default => sub { [qw(profile)] },
);

has nonce => (
    is  => 'ro',
    isa => 'Str',
);

has prompt => (
    is  => 'ro',
    isa => 'Str',
);

has max_age => (
    is  => 'ro',
    isa => 'Int',
);

has ui_locales => (
    is  => 'ro',
    isa => 'Str',
);

has bot_prompt => (
    is  => 'ro',
    isa => 'Str',
);

has user_info => (
    is      => 'rw',
    isa     => 'Bool',
    default => 1,
);

lib/Amon2/Auth/Site/LINE.pm  view on Meta::CPAN

        response_type => 'code',
        client_id     => $self->client_id,
        scope         => join(' ', @{$self->scope}),
        redirect_uri  => $redirect_uri,
        state         => $self->get_state($c),
    );

    # optional parameters
    $params{nonce} = $self->get_nonce($c);

    for my $key (qw(prompt max_age ui_locales bot_prompt)) {
        my $value = $self->$key;
        if (defined $value) {
            $params{$key} = $value;
        }
    }

    my $auth_uri = URI->new($self->authorize_url);
    $auth_uri->query_form(%params);

    return $auth_uri->as_string;

lib/Amon2/Auth/Site/LINE.pm  view on Meta::CPAN

API scope as an array-ref.
Acceptable values are: C<< profile >>, C<< openid >> and C<< email >>.
See detail: L<https://developers.line.biz/en/docs/line-login/integrate-line-login/#scope>
Default value is C<< ['profile'] >>.

=item nonce

Optional. If you don't set nothing, it generates a random string.
The C<< nonce >> parameter is used a system for preventing replay attack / token interception attack on OpenID Connect. This attribute should not be set some foreseeable fixed value.

=item prompt

Optional. C<< consent >> is acceptable.

=item max_age

Optional. Specified on OpenID Conjnect Core 1.0.

=item ui_locales

Optional. Specified on OpenID Conjnect Core 1.0.

=item bot_prompt

Optional. C<< normal >> and C<< aggressive >> are acceptable.

=item state_session_key

Optional. C<< state >> parameter is kept on session with this specified session key during authentication.
Default values C<< line_login_state >>.

=item nonce_session_key



( run in 1.324 second using v1.01-cache-2.11-cpan-6aa56a78535 )