Skip to content

Storage/Memory simple question #105

@luanmanfre

Description

@luanmanfre

Is possible create a server jwt using only memory storage? Because, I can not read the refresh token in memory.
how is the $server->addGrantType( OAuth2\GrantType\RefreshToken ) in memory, for after so that I can then make a call to create a new access_token, all using Storage/Memory. Its possible?

ignore this structure of code

server.php
$storage = new OAuth2\Storage\Memory(...)
$server = new OAuth2\Server($storage)

method: token(){ return access_token, jwt and others  }
method: resource(){ if user is valid and show resource...}
method: renewRefreshToken(){  here.. i need the idea for code }

in PDO storage, works with me.. but I want to test in memory.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions