AzMoo / django-okta-auth

Django Okta Auth is a library that acts as a client for the Okta OpenID Connect provider.
MIT License
30 stars 23 forks source link

Fix HTML login.html example #17

Closed chadell closed 1 year ago

chadell commented 3 years ago

Missing )

MeMohamedSulaiman commented 3 years ago

/needsmoreinfo

chadell commented 3 years ago

/needsmoreinfo

/needsmoreinfo

    <script type="text/javascript">
      var oktaSignIn = new OktaSignIn({
          baseUrl: '{{config.url}}',
          clientId: '{{config.clientId}}',
          redirectUri: '{{config.redirectUri}}',
          authParams: {
              issuer: '{{config.issuer}}',
              responseType: ['code'],
              scopes: "{{config.scope}}".split(" "),
              pkce: false,
          },
      });
      oktaSignIn.renderEl(
          {el: '#okta-login-container'},
          function (res) {
              console.log(res);
          }
missing a closing bracket from oktaSignIn.renderEl( ->      )
    </script>
santoru commented 3 years ago

@AzMoo The example login.html page has a broken JS. This PR will fix the example, can you please merge it? Thank you

AzMoo commented 1 year ago

Had 2 PRs for this, merged the other one.