Skip to content

How to set custom ttl #14

@shastik

Description

@shastik

Hi,

can you help me how to set custom ttl via configuration?

I tried to set it with:

oauth2.server:
	grants:
		authCode: false
		clientCredentials:
                     ttl: 'PT10M'

		implicit: false
		password: true
		refreshToken: true

but it doesn't work. But it seems it is possible to set a custom value. I found it in file: OAuth2ServerExtension:133:

$ttl = $options->ttl ?? null;

I tried to debug it and $options is not a object, but it is an array:

array
'authCode' => false
'clientCredentials' => array
'ttl' => 'PT10M'
'implicit' => false
'password' => true
'refreshToken' => true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions