/
portal-oauth-clients.md
55 lines (36 loc) · 2.83 KB
/
portal-oauth-clients.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
date: 2017-03-24T17:42:45Z
title: Portal OAuth Clients
menu:
main:
parent: "Tyk Portal Classic"
weight: 10
aliases:
- /tyk-stack/tyk-developer-portal/portal-oauth-clients/
- /tyk-developer-portal/portal-oauth-clients/
---
From Tyk Dashboard v1.8, you can now create and manage OAuth clients from the Developer Portal.
## Prerequisites
1. An API created in your Dashboard using Tyk's ability to act as a OAuth provider. You need to have [OAuth 2.0]({{< ref "basic-config-and-security/security/authentication-authorization/oauth-2-0#option-2---use-the-tyk-oauth-flow" >}}) selected as the Authentication mode. See [Create an API]({{< ref "getting-started/create-api" >}}) for more details.
2. A Policy created in your Dashboard with the API created above selected in the **Access Rights > Add access rule** drop-down. See [Create a Security Policy]({{< ref "getting-started/create-security-policy" >}}) for more details.
3. A Portal Catalogue entry for the API created above with the Policy you created selected from the **Available policies** drop-down. See [Create a Portal Entry]({{< ref "getting-started/tutorials/publish-api" >}}) for more details.
4. A developer account created in your Developer Portal.
## Create the OAuth Client from the Portal
1. Login to your Portal:
{{< img src="/img/dashboard/portal-management/dev_portal_homev1.8.png" alt="Developer Portal Home Screen" >}}
2. Select **OAuth Clients** from the top menu
3. If this is the first OAuth Client you are creating, the screen will be as below:
{{< img src="/img/dashboard/portal-management/portal_first-oauth_client.png" alt="Developer OAuth Home Screen" >}}
4. Click **Create first OAuth Client**
5. Hover over the API you added to the Catalogue with OAuth Authentication mode from the drop-down list:
{{< img src="/img/dashboard/portal-management/portal_oauth_select_api2.png" alt="Select API Screen" >}}
6. Click **Select API**
7. Then click **Save and continue**:
{{< img src="/img/dashboard/portal-management/portal_oauth_connected_api2.png" alt="Save" >}}
8. You can now add details about your application, and set the redirect URL to the application. If you want to use this client for more than one application, you can add other redirect URLs as necessary.
9. Click **Create**
{{< img src="/img/dashboard/portal-management/create_portal_oauth_client.png" alt="Create" >}}
10. You need to copy and save the displayed Client Secret, as you will not be able to view it from the Portal again. The secret is stored on the Dashboard and are listed for each developer under the **Portal Management > Developers** menu.
{{< img src="/img/dashboard/portal-management/oauth_client_secrets.png" alt="secret" >}}
## Revoke OAuth Client Tokens
See [Revoke OAuth Tokens]({{< ref "/content/basic-config-and-security/security/your-apis/oauth20/revoke-oauth-tokens.md" >}}) for more details.