Register Grok Bot in Okta
Register Grok Bot as an app in Okta so it can sign people in to your Dtwo gateway.
On this page
Overview
Grok Bot needs its own app in Okta to sign people in to your Dtwo gateway. You only do this once for your organization. Everyone who uses Grok Bot with your gateway signs in through this app.
Before you start
If you haven’t set up your Dtwo gateway in Okta yet, follow Configure Okta first, then come back here.
Register Grok Bot
- Go to Applications and Resources → Applications and select Create App Integration.
- Set Sign-in method to OIDC - OpenID Connect and Application type to Web Application, then select Next.
- Fill in the app settings:
- App integration name:
Grok Bot - Grant type: Authorization Code and Refresh Token
- Sign-in redirect URIs:
https://www.cursor.com/agents/mcp/oauth/callback. Grok Bot signs people in from Cursor’s servers, so it uses a web redirect rather than a localhost one. - Controlled access: assign the users or groups who may use the gateway through this client
- App integration name:
- Select Save. On the General tab, copy the Client ID — this is the client’s
<ClientId>— and the Client secret under Client Credentials — this is the client’s<ClientSecret>.
Next steps
Use the client ID and secret you copied to roll out Dtwo to your organization in Grok Bot or to connect Grok Bot for yourself.