Skip to content

NitroXy/nxauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API for nitroxy.com

This code provide a API for nitroxy.com. On a basic level it provides cas login, giving you only username and name of the user, but with a API key you can gain access to much more.

Usage

Put this as a submodule in your repository, then copy nxauth.sample.php into your project and modify it.

Functions

NXAuth

These functions does not require a API key

  • NXAuth::login(): Trigger login
  • NXAuth::logout(): Trigger logout
  • NXAuth::is_authenticated(): bool
  • NXAuth::user(): Return a NXUser instance with the current user, or null

NXUser

These functions does not require a API key

Contains these attributes:

  • username
  • user_id
  • fullname
  • ticket

NXAPI

NXAPI::api_function_name(api_options) calls api_function_name with api_options.

About

A module for authenticating with NitroXys CAS-service

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages