-
Notifications
You must be signed in to change notification settings - Fork 5
Pre configure Enterprise OAuth
Martin Giger edited this page Apr 2, 2018
·
3 revisions
Using the managed extension storage, an Enterprise Instance can be pre-configured. It will be selected by default to create an account with, directly starting the OAuth flow with the Enterprise instance.
The redirect URL for the OAuth app must be https://localhost/github-auth
.
See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_manifests for manifest format and location. Following is an excerpt of what to provide to the extension:
{
"name": "{8d4b86c5-64bf-4780-b029-0112386735ab}",
"description": "Pre-configures an enterprise instance for login in Advanced Github Notifier",
"type": "storage",
"data": {
"enterprise": {
"clientID": "Your client ID",
"clientSecret": "Your client secret",
"instanceURL": "https://example.com/your-enterprise-instance"
}
}
}