Страница регистрации самостоятельного пользователя Okta не отображается - PullRequest
0 голосов
/ 05 декабря 2018

Я пытаюсь добавить ссылку для регистрации в мой виджет входа в систему okta.Я изменил политику регистрации пользователей на панели администратора okta.Но когда я нажимаю на ссылку «Зарегистрироваться», она показывает пустое окно.

При проверке в консоли я получил эту ошибку.

{"errorCode":"E0000007","errorSummary":"Not found: Resource not found: 0oahy3194bQu0CKAD0h7 (UserRegistrationPolicy)","errorLink":"E0000007","errorId":"oae2fIZi7s3SBanTYQBXE77tQ","errorCauses":[]}

Я перешел по этой ссылке, чтобы добавить политику регистрации пользователей https://help.okta.com/en/prod/Content/Topics/Directory/Directory_Self_Service_Registration.htm

Я настроил виджет входа в виджетв моем приложении Angular, используя этот код:

    var signInWidgetConfig = {
          // Enable or disable widget functionality with the following options. Some of these features require additional configuration in your Okta admin settings. Detailed information can be found here: https://github.com/okta/okta-signin-widget#okta-sign-in-widget
          // Look and feel changes:
          logo: '//logo.clearbit.com/okta.com', // Try changing "okta.com" to other domains, like: "workday.com", "splunk.com", or "delmonte.com"
          language: 'en',                       // Try: [fr, de, es, ja, zh-CN] Full list: https://github.com/okta/okta-signin-widget#language-and-text
          i18n: {
            //Overrides default text when using English. Override other languages by adding additional sections.
            'en': {
              'primaryauth.title': 'Sign In',   // Changes the sign in text
              'primaryauth.submit': 'Sign In',  // Changes the sign in button
              // More e.g. [primaryauth.username.placeholder,  primaryauth.password.placeholder, needhelp, etc.].
              // Full list here: https://github.com/okta/okta-signin-widget/blob/master/packages/@okta/i18n/dist/properties/login.properties
            }
          },
          // Changes to widget functionality
          features: {
            registration: true,                 // Enable self-service registration flow
            rememberMe: true,                   // Setting to false will remove the checkbox to save username
            //multiOptionalFactorEnroll: true,  // Allow users to enroll in multiple optional factors before finishing the authentication flow.
            //selfServiceUnlock: true,          // Will enable unlock in addition to forgotten password
            //smsRecovery: true,                // Enable SMS-based account recovery
            //callRecovery: true,               // Enable voice call-based account recovery
            router: false                       // Leave this set to true for the API demo
          },
          authScheme:'SESSION',
          baseUrl: sampleConfig.oidc.issuer.split('/oauth2')[0],
          clientId: sampleConfig.oidc.clientId,
          redirectUri: sampleConfig.oidc.redirectUri,
          authParams: {
            responseType: ['id_token', 'token'],
            issuer: sampleConfig.oidc.issuer,
            display: 'page',
            scopes: sampleConfig.oidc.scope.split(' '),
          },
        };
        this.signIn = new OktaSignIn(signInWidgetConfig);


Please help me in this.
...