Download the PHP package romichoirudin33/sso without Composer

On this page you can find all versions of the php package romichoirudin33/sso. 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 sso

Single Sign On NTBPROV

Laravel wrapper OAuth 2 libraries to make support for (NTB Goverments).

Instalation

To get started SSO, use the Composer package manager to add the package to your project's dependencies:

after install composer, please insert SsoNtbServiceProvider on config/app.php

then please insert config/services.php

and yey, finally you must insert that SSO_CLIENT in .env example like this

For get environment SSO_CLIENT you must register your application on https://sso.ntbprov.go.id.

If you don't have account DEVELOPER on https://sso.ntbprov.go.id, you can send email to [email protected] for get more information or contact us on https://layanan.diskominfotik.ntbprov.go.id/.

Authentication Using Laravel

Routing

To authenticate users using an OAuth provider, you will need two routes: one for redirecting the user to the OAuth provider, and another for receiving the callback from the provider after authentication. The example routes below demonstrate the implementation of both routes:

Authentication & Storage

Once the user has been retrieved from the OAuth provider, you may determine if the user exists in your application's database and authenticate the user. If the user does not exist in your application's database, you will typically create a new record in your database to represent the user:

User Details

After the user is redirected back to your application's authentication callback route, you may retrieve the user's details using Socialite's user method. The user object returned by the user method provides a variety of properties and methods you may use to store information about the user in your own database.

User Details (JSON)

#

Custom Authentication Using Laravel

Actually the application don't have register feature from user. Because some application have limit user to access. User can access just user that register from administrator. So if your application like this, you must custom authentication, example like this

Routes

Controllers

Views

But it's just example for using this package. You still need to adapt the code to your needs.

Custom Authentication Using CodeIgniter 3

HTTPClient Libraries

Please make libraries HTTPClient on application/libraries/HTTPClient.php

Controller

Don't forget to autoload libraries and helpers before make controller

So you can use this code for get data user, but if you have specific logic authentication you still need to adapt the code to your needs.

Supports Me

For next information about this package you can contact me on [email protected]


All versions of sso with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
guzzlehttp/guzzle Version ^6.0|^7.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 romichoirudin33/sso contains the following files

Loading the files please wait ....