{"id":19166561,"url":"https://github.com/teltek/oauth2-oracle-access-manager","last_synced_at":"2026-04-22T05:33:20.933Z","repository":{"id":56211462,"uuid":"83670428","full_name":"teltek/oauth2-oracle-access-manager","owner":"teltek","description":"DEPRECATED","archived":false,"fork":false,"pushed_at":"2021-02-01T12:08:48.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-03T22:44:17.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teltek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-02T11:28:46.000Z","updated_at":"2024-05-18T14:22:39.000Z","dependencies_parsed_at":"2022-08-15T14:50:09.294Z","dependency_job_id":null,"html_url":"https://github.com/teltek/oauth2-oracle-access-manager","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teltek%2Foauth2-oracle-access-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teltek%2Foauth2-oracle-access-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teltek%2Foauth2-oracle-access-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teltek%2Foauth2-oracle-access-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teltek","download_url":"https://codeload.github.com/teltek/oauth2-oracle-access-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240246733,"owners_count":19771170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T09:33:34.000Z","updated_at":"2026-04-22T05:33:15.912Z","avatar_url":"https://github.com/teltek.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deprecated \n\nThis bundle is deprecated and only works for PuMuKIT v2.7 or lower.\n\nTo use PuMuKIT v3 or greater install the new bundle: [PumukitOAuth2Bundle](https://github.com/pumukit/PumukitOAuth2Bundle)\n\n\n# Oracle Access Manager Provider for OAuth 2.0 Client\n\nThis package provides Oracle Access Manager OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).\n\n## Installation\n\nTo install, use composer:\n\n```\ncomposer require teltek/oauth2-oracle-access-manager\n```\n\n## Usage\n\nUsage is the same as The League's OAuth client, using `Teltek\\Oauth2OracleAccessManagerBundle\\Provider\\Oam` as the provider.\n\n### Authorization Code Flow\n\n```php\n$provider = new Teltek\\Oauth2OracleAccessManagerBundle\\Provider\\Oam(\n    'clientId' =\u003e 'your client id',\n    'clientSecret' =\u003e 'your client secret',\n    'redirectUri' =\u003e 'your redirect uri',\n    'urlAuthorize' =\u003e 'your url authorize',\n    'urlAccessToken' =\u003e 'your url access token',\n    'urlResourceOwnerDetails' =\u003e 'your url resource owner details',\n]);\n\nif (!isset($_GET['code'])) {\n    $options['scope'] = array('Customer.Info','UserProfile.me');\n    $authorizationUrl = $provider-\u003egetAuthorizationUrl($options);\n\n    $_SESSION['oauth2state'] = $provider-\u003egetState();\n\n    header('Location: '.$authorizationUrl);\n    exit;\n\n} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {\n    unset($_SESSION['oauth2state']);\n    exit('Invalid state');\n} else {\n\n    try {\n        $accessToken = $provider-\u003egetAccessToken('authorization_code',['code' =\u003e $_GET['code']]);\n\n        $resourceOwner = $provider-\u003egetResourceOwner($accessToken);\n        \n        ...\n    }  catch (IdentityProviderException $e) {\n        exit($e-\u003egetMessage());\n    }\n```\n\n\n### Scopes \n\nIf you want send different scopes you must edit:\n\n```php\n$options['scope'] = array('Customer.Info','UserProfile.me');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteltek%2Foauth2-oracle-access-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteltek%2Foauth2-oracle-access-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteltek%2Foauth2-oracle-access-manager/lists"}