Skip to content

neothone/oauth2-orcid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth2 ORCID Client

This package provides ORCID OAuth 2.0 support for the PHP League's OAuth 2.0 Client.

Installation

To install, use composer:

composer require mathieu-dumoutier/oauth2-orcid

Usage

Usage is the same as The League's OAuth client, using \MathieuDumoutier\OAuth2\Client\Provider\Orcid as the provider.

knpuniversity/oauth2-client-bundle configuration example

knpu_oauth2_client:
    clients:
        orcid_oauth:
            type: generic
            provider_class: MathieuDumoutier\OAuth2\Client\Provider\Orcid
            provider_options:
                "scopes": '%env(ORCID_OAUTH_SCOPES)%'
                "use_member_api": '%env(ORCID_OAUTH_SANDBOX_MODE)%'
                "sandbox_mode": '%env(ORCID_OAUTH_MEMBER_API)%'
                "api_version": '%env(ORCID_OAUTH_API_VERSION)%'        
            client_id: '%env(ORCID_APP_ID)%'
            client_secret: '%env(ORCID_APP_SECRET)%'
            redirect_route: orcid_check
            redirect_params: {}
            use_state: false

You must define the 6 environment variables :

You must create the route "orcid_check".

Testing

$ ./vendor/bin/phpunit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages