Skip to content

Instantly share code, notes, and snippets.

@srinivasanagandla-okta
Last active August 29, 2015 14:00
Show Gist options
  • Save srinivasanagandla-okta/0f2c0c8aa5dd1b9ed568 to your computer and use it in GitHub Desktop.
Save srinivasanagandla-okta/0f2c0c8aa5dd1b9ed568 to your computer and use it in GitHub Desktop.
Discover Factors

List Factors

GET /api/v1/users/factors HTTP/1.1
Host: your-subdomain.okta.com
Authorization: SSWS yourtoken
Accept: application/json
Content-Type: application/json

Response

[
  {
	"factorType": "sms",
	"providers": ["okta","duo"],
	"deviceType": "mobile" 
  },
  {
	"factorType": "hotp",
	"providers": ["rsa"],
	"deviceType": "token" 
  },
  {
	"factorType": "totp",
	"providers": ["okta","google","symantec","duo"],
	"deviceCategory": "smartphone"
  },
  {
	"factorType": "call",
	"providers": ["okta","duo"],
	"deviceCategory": "phone" 
  },
  {
	"factorType": "push",
	"providers": ["duo"],
	"deviceCategory": "smartphone"
  }
]

List Providers

GET /api/v1/users/factors/providers HTTP/1.1
Host: your-subdomain.okta.com
Authorization: SSWS yourtoken
Accept: application/json
Content-Type: application/json
[
	{ 
		"id" : "1234",
		"name" : "okta",
		"status" : "ACTIVE",
		"factors" : ["sms","totp","question"]
	},
	{ 
		"id" : "4567",
		"name" : "symantec",
		"status" : "DISABLED",
		"factors" : ["totp"]
	},
	{ 
		"id" : "7890",
		"name" : "duo",
		"status" : "DISABLED",
		"factors" : ["sms","totp","push","call"]
	}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment