Opauth strategy for Authentik authentication.
Implemented based on https://developers.loginCidadao.com/accounts/docs/OAuth2 using OAuth 2.0.
Opauth is a multi-provider authentication framework for PHP.
-
Install Opauth-Authentik:
cd path_to_opauth/Strategy git clone git://github.com/uzyn/opauth-loginCidadao.git Authentik
-
Install a Authentik
- Create a OAuth 2.0 Provider, save the client Id and secret
- Create a Application using the OAuth 2.0 Provider
-
Configure Opauth-Authentik strategy.
-
Direct user to
http://path_to_opauth/authentik
to authenticate
Required parameters:
<?php
'Authentik' => array(
'client_id' => 'YOUR CLIENT ID',
'client_secret' => 'YOUR CLIENT SECRET',
''
)
Optional parameters:
auth_endpoint
, token_endpoint
, user_info_endpoint
, redirect_uri
, scope
, state
, access_type
, approval_prompt
- Authentik Docs
- Using OAuth 2.0 to Access Login Cidadão APIs
- Using OAuth 2.0 for Login
- Using OAuth 2.0 for Web Server Applications
Opauth-Authentik is MIT Licensed Copyright © 2012 U-Zyn Chua (http://uzyn.com)