OAuth2 Integration

Issue #42 closed
Former user created an issue

Thanks for the great extension. The only caveat we encounter right now is integrating the extension with an oauth2 compatible authorization process. Are there any best practices or other extensions on this topic?

Comments (2)

  1. David Bascom

    You can register custom authenticators in the `ext_localconf.php` of your extension.
    Make sure to add a dependency to EXT:nnrestapi

    Have a look at the example in EXT:nnrestapi

    \nn\rest::Auth()->register([
          'priority'  => '0',
          'className' => \Nng\Nnrestapi\Authenticator\Jwt::class
    ]);
    

    And it would be great if you would share your code for the OAuth2 Integration of nnrestapi with the community.

  2. Log in to comment