Skip to content

Commit

Permalink
Update redirects.js (#10358)
Browse files Browse the repository at this point in the history
* Update redirects.js

Updated redirects for new Authentication and Authorization Flows IA updates up until Device Flows

* Update redirects.js

Updated redirects for Device Authorization Flow, Implicit Flow with Form Post, Hybrid Flow, and Resource Owner Password Flow
  • Loading branch information
lrzhou25 authored Jan 19, 2024
1 parent f6115f5 commit 61a53bc
Showing 1 changed file with 32 additions and 18 deletions.
50 changes: 32 additions & 18 deletions config/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ const redirects = [
'/design/browser-based-vs-native-experience-on-mobile',
'/tutorials/browser-based-vs-native-experience-on-mobile',
'/best-practices/mobile-device-login-flow-best-practices',
'/get-started/authentication-and-authorization-flow/mobile-device-login-flow-best-practices',
],
to: '/get-started/authentication-and-authorization-flow/mobile-device-login-flow-best-practices',
to: '/get-started/authentication-and-authorization-flow/device-authorization-flow/mobile-device-login-flow-best-practices',
},
{
from: '/topics/identity-glossary',
Expand Down Expand Up @@ -978,19 +979,19 @@ const redirects = [
},
{
from: ['/microsites/call-api/call-api-device'],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-the-device-authorization-flow',
to: '/get-started/authentication-and-authorization-flow/device-authorization-flow/call-your-api-using-the-device-authorization-flow',
},
{
from: ['/microsites/call-api/call-api-native-mobile-app'],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow-with-pkce',
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce/call-your-api-using-the-authorization-code-flow-with-pkce',
},
{
from: ['/microsites/call-api/call-api-regular-web-app'],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow',
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow',
},
{
from: ['/microsites/call-api/call-api-single-page-app'],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow-with-pkce',
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce/call-your-api-using-the-authorization-code-flow-with-pkce',
},
{
from: ['/microsites/manage-users/define-maintain-custom-user-data'],
Expand Down Expand Up @@ -2704,8 +2705,9 @@ const redirects = [
'/api-auth/tutorials/authorization-code-grant',
'/flows/call-your-api-using-the-authorization-code-flow',
'/authorization/flows/call-your-api-using-the-authorization-code-flow',
'/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow',
],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow',
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow',
},
{
from: [
Expand All @@ -2715,8 +2717,9 @@ const redirects = [
'/flows/concepts/single-page-login-flow',
'/flows/authorization-code-flow-with-proof-key-for-code-exchange-pkce',
'/authorization/flows/authorization-code-flow-with-proof-key-for-code-exchange-pkce',
'/get-started/authentication-and-authorization-flow/authorization-code-flow-with-proof-key-for-code-exchange-pkce',
],
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow-with-proof-key-for-code-exchange-pkce',
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce',
},
{
from: [
Expand All @@ -2728,8 +2731,9 @@ const redirects = [
'/api-auth/tutorials/authorization-code-grant-pkce',
'/flows/call-your-api-using-the-authorization-code-flow-with-pkce',
'/authorization/flows/call-your-api-using-the-authorization-code-flow-with-pkce',
'/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow-with-pkce',
],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow-with-pkce',
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce/call-your-api-using-the-authorization-code-flow-with-pkce',
},
{
from: [
Expand All @@ -2753,8 +2757,9 @@ const redirects = [
'/api-auth/tutorials/nonce',
'/authorization/mitigate-replay-attacks-when-using-the-implicit-flow',
'/authorization/flows/mitigate-replay-attacks-when-using-the-implicit-flow',
'/get-started/authentication-and-authorization-flow/mitigate-replay-attacks-when-using-the-implicit-flow',
],
to: '/get-started/authentication-and-authorization-flow/mitigate-replay-attacks-when-using-the-implicit-flow',
to: '/get-started/authentication-and-authorization-flow/implicit-flow-with-form-post/mitigate-replay-attacks-when-using-the-implicit-flow',
},
{
from: ['/flows/hybrid-flow', '/api-auth/grant/hybrid', '/authorization/flows/hybrid-flow'],
Expand All @@ -2765,8 +2770,9 @@ const redirects = [
'/api-auth/tutorials/hybrid-flow',
'/flows/call-api-hybrid-flow',
'/authorization/flows/call-api-hybrid-flow',
'/get-started/authentication-and-authorization-flow/call-api-hybrid-flow',
],
to: '/get-started/authentication-and-authorization-flow/call-api-hybrid-flow',
to: '/get-started/authentication-and-authorization-flow/hybrid-flow/call-api-hybrid-flow',
},
{
from: [
Expand All @@ -2790,17 +2796,19 @@ const redirects = [
'/api-auth/config/asking-for-access-tokens',
'/flows/call-your-api-using-the-client-credentials-flow',
'/authorization/flows/call-your-api-using-the-client-credentials-flow',
'/get-started/authentication-and-authorization-flow/call-your-api-using-the-client-credentials-flow',
],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-the-client-credentials-flow',
to: '/get-started/authentication-and-authorization-flow/client-credentials-flow/call-your-api-using-the-client-credentials-flow',
},
{
from: [
'/api-auth/tutorials/client-credentials/customize-with-hooks',
'/api-auth/grant/using-rules',
'/authorization/customize-tokens-using-hooks-with-client-credentials-flow',
'/authorization/flows/customize-tokens-using-hooks-with-client-credentials-flow',
'/get-started/authentication-and-authorization-flow/customize-tokens-using-hooks-with-client-credentials-flow',
],
to: '/get-started/authentication-and-authorization-flow/customize-tokens-using-hooks-with-client-credentials-flow',
to: '/get-started/authentication-and-authorization-flow/client-credentials-flow/customize-tokens-using-hooks-with-client-credentials-flow',
},
{
from: [
Expand All @@ -2815,8 +2823,9 @@ const redirects = [
'/flows/guides/device-auth/call-api-device-auth',
'/authorization/flows/call-your-api-using-the-device-authorization-flow',
'/microsites/protect-api/protect-api',
'/get-started/authentication-and-authorization-flow/call-your-api-using-the-device-authorization-flow',
],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-the-device-authorization-flow',
to: '/get-started/authentication-and-authorization-flow/device-authorization-flow/call-your-api-using-the-device-authorization-flow',
},
{
from: [
Expand All @@ -2832,17 +2841,19 @@ const redirects = [
'/flows/call-your-api-using-resource-owner-password-flow',
'/api-auth/tutorials/password-grant',
'/authorization/flows/call-your-api-using-resource-owner-password-flow',
'/get-started/authentication-and-authorization-flow/call-your-api-using-resource-owner-password-flow',
],
to: '/get-started/authentication-and-authorization-flow/call-your-api-using-resource-owner-password-flow',
to: '/get-started/authentication-and-authorization-flow/resource-owner-password-flow/call-your-api-using-resource-owner-password-flow',
},
{
from: [
'/api-auth/tutorials/using-resource-owner-password-from-server-side',
'/authorization/avoid-common-issues-with-resource-owner-password-flow-and-anomaly-detection',
'/authorization/avoid-common-issues-with-resource-owner-password-flow-and-attack-protection',
'/authorization/flows/avoid-common-issues-with-resource-owner-password-flow-and-attack-protection',
'/get-started/authentication-and-authorization-flow/avoid-common-issues-with-resource-owner-password-flow-and-attack-protection',
],
to: '/get-started/authentication-and-authorization-flow/avoid-common-issues-with-resource-owner-password-flow-and-attack-protection',
to: '/get-started/authentication-and-authorization-flow/resource-owner-password-flow/avoid-common-issues-with-resource-owner-password-flow-and-attack-protection',
},
{
from: ['/authorization/concepts/rbac', '/authorization/rbac', '/rbac'],
Expand Down Expand Up @@ -6040,8 +6051,9 @@ const redirects = [
'/application-auth/legacy/server-side-web',
'/flows/add-login-auth-code-flow',
'/login/authentication/add-login-auth-code-flow',
'/get-started/authentication-and-authorization-flow/add-login-auth-code-flow',
],
to: '/get-started/authentication-and-authorization-flow/add-login-auth-code-flow',
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow/add-login-auth-code-flow',
},
{
from: [
Expand All @@ -6058,8 +6070,9 @@ const redirects = [
'/flows/guides/mobile-login-flow/add-login-using-mobile-login-flow',
'/flows/add-login-using-the-authorization-code-flow-with-pkce',
'/login/authentication/add-login-using-the-authorization-code-flow-with-pkce',
'/get-started/authentication-and-authorization-flow/add-login-using-the-authorization-code-flow-with-pkce',
],
to: '/get-started/authentication-and-authorization-flow/add-login-using-the-authorization-code-flow-with-pkce',
to: '/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce/add-login-using-the-authorization-code-flow-with-pkce',
},
{
from: [
Expand All @@ -6074,8 +6087,9 @@ const redirects = [
'/application-auth/legacy/client-side-web',
'/flows/add-login-using-the-implicit-flow-with-form-post',
'/login/authentication/add-login-using-the-implicit-flow-with-form-post',
'/get-started/authentication-and-authorization-flow/add-login-using-the-implicit-flow-with-form-post',
],
to: '/get-started/authentication-and-authorization-flow/add-login-using-the-implicit-flow-with-form-post',
to: '/get-started/authentication-and-authorization-flow/implicit-flow-with-form-post/add-login-using-the-implicit-flow-with-form-post',
},
{
from: [
Expand Down

0 comments on commit 61a53bc

Please sign in to comment.