@@ -42,6 +42,43 @@ Main features:
42422 . Add .env-cmdrc file into the project directory (use '.env-cmdrc-template')
43433 . Replace values such as secret keys and URLs
4444
45+ ### Auth Providers
46+
47+ Switcher API supports multiple auth providers such as email/password-based authentication or GitHub, Bitbucket OAuth.
48+
49+ Follow the steps below to set up your OAuth App in GitHub and Bitbucket.
50+
51+ #### GitHub OAuth App setup
52+
53+ 1 . Open your GitHub account or organization settings
54+ 2 . Go to Developer settings > OAuth Apps
55+ 3 . Click on "New OAuth App"
56+ 4 . Fill in the application details:
57+ - Application name: Switcher API
58+ - Homepage URL: https://switcher-management-url (or your deployed URL)
59+ - Authorization callback URL: https://switcher-management-url/login?platform=github
60+ 5 . Click on "Register application"
61+ 6 . Copy the Client ID and Client Secret
62+ 7 . Update your .env-cmdrc file or ConfigMap/Secret in Kubernetes with the following variables:
63+ - GIT_OAUTH_CLIENT_ID=your_client_id
64+ - GIT_OAUTH_CLIENT_SECRET=your_client_secret
65+ 8 . Update Switcher Management GITHUB_CLIENTID environment variable with your_client_id
66+
67+ #### Bitbucket OAuth App setup
68+
69+ 1 . Open your Bitbucket account or workspace settings
70+ 2 . Go to Apps and features > OAuth consumers
71+ 3 . Fill in the application details:
72+ - Name: Switcher API
73+ - Callback URL: https://switcher-management-url/login?platform=bitbucket
74+ 4 . Add permissions -> Account: Read
75+ 5 . Click on "Save"
76+ 6 . Copy the Key and Secret
77+ 7 . Update your .env-cmdrc file or ConfigMap/Secret in Kubernetes with the following variables:
78+ - BIT_OAUTH_CLIENT_ID=your_client_id
79+ - BIT_OAUTH_CLIENT_SECRET=your_client_secret
80+ 8 . Update Switcher Management BITBUCKET_CLIENTID environment variable with your_client_id
81+
4582### Running Switcher API from Docker Composer manifest file
4683
4784This option leverages Switcher API and Switcher Management with minimum settings required.
@@ -85,8 +122,8 @@ It is equivalent to an organization that can manage multiple projects, users, an
85122- ** New domain** - Domain: /domain/create [ POST]
86123
87124### Component
88- Components are applications that are using Switcher API.<br >
89- Each component has its own access token and needs to be linked to Switchers .
125+ Components are applications that will use Switcher API.<br >
126+ Each component has its own access API key to interact with Switcher API .
90127
91128- ** Create a component** - Component: /component/create [ POST]
92129- ** Generating a new API Key** - Component: /component/generateApiKey [ GET]
@@ -97,11 +134,11 @@ Groups are used to organize Switchers that share the same feature scope.
97134- ** New Group** - GroupConfig: /groupconfig/create [ POST]
98135
99136### Switcher
100- Switchers are the main entities to control features.
137+ Switchers are the entry point to control features in your application.< br >
101138
102139- ** New Switcher** - Config: /config/create [ POST]
103140
104141### Strategy
105- Customize the behavior of the Switcher by including strategy rules to your Switchers.
142+ Customize the Switcher behavior by including strategy rules to your Switchers.
106143
107144- ** New Strategy** - ConfigStrategy: /configstrategy/create [ POST]
0 commit comments