okta / okta-sdk-php

PHP SDK for the Okta API
Apache License 2.0
38 stars 71 forks source link

Adding Oauth for Okta #78

Closed bretterer closed 4 years ago

bretterer commented 4 years ago

New Environment variables:

OKTA_CLIENT_CLIENTID={Your new service app client id}
OKTA_CLIENT_SCOPES={space delimited string of scopes }
OKTA_CLIENT_PRIVATEKEY={Your PEM Private Key}

Usage:

$client = (new \Okta\ClientBuilder)
  ->setAuthorizationMode(new \Okta\Utilities\AuthorizationMode(\Okta\Utilities\AuthorizationMode::PRIVATE_KEY))
  ->build();
codecov-io commented 4 years ago

Codecov Report

Merging #78 into develop will increase coverage by 0.03%. The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop      #78      +/-   ##
=============================================
+ Coverage      94.71%   94.74%   +0.03%     
  Complexity       948      948              
=============================================
  Files            131      131              
  Lines           2949     2948       -1     
=============================================
  Hits            2793     2793              
+ Misses           156      155       -1
Impacted Files Coverage Δ Complexity Δ
src/Utilities/PrivateKeyAuthentication.php 83.01% <ø> (+1.53%) 8 <0> (ø) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update dc4f469...67da1d4. Read the comment docs.