Naviga ID
Docs HomeInfomakerNaviga
  • Introduction
  • Release notes
  • Architecture
    • Authorization schema
  • Integrations
    • Customer Integration
      • Microsoft Azure
      • Google G Suite
      • Custom Identity Provider
      • Moving to a New Identity Provider
    • Service Integration
      • IMSG and headers
  • Services
    • Admin API
      • Routes
        • Health
        • Organizations
        • Permissions
        • Roles
        • Units
        • Services
        • Subjects
        • Organization applications
        • Internal applications
    • IMSG
      • Routes
        • Imsg-service
      • Environment variables
  • Shared modules
    • Http Test Server
      • HttpTestServer
    • Service Authorization Lib
      • Authorize
      • Errors
      • ExpressMiddleware
      • TokenUtils
      • Hapi plugin
      • ServiceAuthorizationError
      • AccessDenied
      • Unauthorized
      • ConfigError
  • Client Credentials
    • Managing Applications
    • Internal Naviga ID Docs
  • Access Token
    • Fetching and using Access Tokens
    • Validate Access Tokens
  • Local development
    • Local HTTPS support
  • Post Mortem
    • Broken backwards compatibility in access token service for client credentials, 20th Dec 2021
Powered by GitBook
On this page
  • /imsg-service/v1/callback
  • /imsg-service/v1/health
  • /imsg-service/v1/login
  • /imsg-service/v1/token-is-set
  • /imsg-service/v1/units
  • /imsg-service/v1/org/{org}/login
  • /imsg-service/v1/logout
  • /imsg-service/v1/unit

Was this helpful?

Export as PDF
  1. Services
  2. IMSG
  3. Routes

Imsg-service

/imsg-service/v1/callback

GET https://[SERVICE URL].com/imsg-service/v1/callback

Callback from IMAS login

Query Parameters

Name
Type
Description

imid_token

string

IM ID JWT

serviceCallback

string

Where to redirect client after login

"Redirected to the service callback url"

/imsg-service/v1/health

GET https://[SERVICE URL].com/imsg-service/v1/health

Health status

{
  "inGrace": false,
  "stateChecksum": "A checksum string"
}
{
  "inGrace": false,
  "stateChecksum": "No checksum string"
}

/imsg-service/v1/login

GET https://[SERVICE URL].com/imsg-service/v1/login

Trigger login flow

Query Parameters

Name
Type
Description

callback*

string

Where to redirect client after login

org*

string

Which org to login with

"Redirected after login"

/imsg-service/v1/token-is-set

GET https://[SERVICE URL].com/imsg-service/v1/token-is-set

Check if request contains IMID token

{
  "msg": "ok"
}
"errors.auth.MissingToken"

/imsg-service/v1/units

GET https://[SERVICE URL].com/imsg-service/v1/units

List all units a subject belongs to

{
  "msg": "Unit set"
}
"errors.auth.Forbidden"

/imsg-service/v1/org/{org}/login

GET https://[SERVICE URL].com/imsg-service/v1/org/{org}/login

Trigger login flow

Query Parameters

Name
Type
Description

callback*

string

Where to redirect client after login

"Redirected after login"

/imsg-service/v1/logout

POST https://[SERVICE URL].com/imsg-service/v1/logout

Log out

Query Parameters

Name
Type
Description

callback

string

Where to redirect client after logout

{
  "msg": "You are logged out"
}

/imsg-service/v1/unit

POST https://[SERVICE URL].com/imsg-service/v1/unit

Set preferred unit

Request Body

Name
Type
Description

unit

string

Preferred unit

{
  "msg": "Unit set"
}
"errors.auth.Forbidden"
PreviousRoutesNextEnvironment variables

Last updated 3 years ago

Was this helpful?