Download the PHP package dragosgaftoneanu/okta-oidc-flows-php without Composer

On this page you can find all versions of the php package dragosgaftoneanu/okta-oidc-flows-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package okta-oidc-flows-php

Okta OIDC Flows PHP

This repository contains the source for the Okta OIDC PHP library that can be used to login your users using Authorization Code Flow, Authorization Code Flow with PKCE or Resource Owner Password Flow inside your PHP application.

:warning: Disclaimer: This is not an official product and does not qualify for Okta Support.

Installation

You can install this library by running the following command through Composer

Requirements

Authorization Code Flow methods

setClientId($client_id)

This method sets the client ID used for authorization code flow.

setClientSecret($client_secret)

This method sets the client secret used for authorization code flow.

setRedirectUri($redirect_uri)

This method sets the redirect uri used for authorization code flow.

setIssuer($issuer)

This method sets the issuer used for authorization code flow.

setScopes($scopes)

This method sets the scopes used for authorization code flow.

setState($state)

This method sets the state used for authorization code flow.

setNonce($nonce)

This method sets the nonce used for authorization code flow.

parseAuthCode($code, $state, $error, $full=true)

This method takes the authorization code, state, error parameters from either GET or POST in order to further process the flow. If $full is set to true, then the result will contain also the details from /introspect and /userinfo endpoint, otherwise it will return only the JWT tokens received after exchanging the code.

Authorization Code Flow with PKCE methods

setClientId($client_id)

This method sets the client ID used for authorization code flow with PKCE.

setRedirectUri($redirect_uri)

This method sets the redirect uri used for authorization code flow with PKCE.

setIssuer($issuer)

This method sets the issuer used for authorization code flow with PKCE.

setScopes($scopes)

This method sets the scopes used for authorization code flow with PKCE.

setState($state)

This method sets the state used for authorization code flow with PKCE.

setNonce($nonce)

This method sets the nonce used for authorization code flow with PKCE.

setCodeVerifier($code_verifier)

This method sets the code verifier used for authorization code flow with PKCE.

parseAuthCode($code, $state, $error, $full=true)

This method takes the authorization code, state, error parameters from either GET or POST in order to further process the flow. If $full is set to true, then the result will contain also the details from /introspect and /userinfo endpoint, otherwise it will return only the JWT tokens received after exchanging the code.

Resource Owner PAssword Flow methods

setClientId($client_id)

This method sets the client ID used for resource owner password flow.

setClientSecret($client_secret)

This method sets the client secret used for resource owner password flow.

setIssuer($issuer)

This method sets the issuer used for resource owner password flow.

setScopes($scopes)

This method sets the scopes used for resource owner password flow.

setUsername($username)

This method sets the username used for resource owner password flow.

setPassword($password)

This method sets the password used for resource owner password flow.

getTokens($full=true)

This method sends the request to the /token endpoint and retrieves the JWT tokens. If $full is set to true, then the result will contain also the details from /introspect and /userinfo endpoint, otherwise it will return only the JWT tokens received after exchanging the code.

Bugs?

If you find a bug or encounter an issue when using the library, please open an issue on GitHub here and it will be further investigated.


All versions of okta-oidc-flows-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dragosgaftoneanu/okta-oidc-flows-php contains the following files

Loading the files please wait ....