question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Okta OIDC social login is not available

See original GitHub issue

Problem

The documentation for activating Okta OIDC social authentication indicates that when I set the three following environment variables, the login screen will have an option to authenticate using Okta OIDC:

  1. OAUTH_OKTA_OPENIDCONNECT_KEY
  2. OAUTH_OKTA_OPENIDCONNECT_SECRET
  3. OAUTH_OKTA_OPENIDCONNECT_API_URL

This is not happening.

How to reproduce the behaviour

  1. Run doccano:1.2.1 image with the following command:
docker run --rm --interactive --tty
    --env SECRET_KEY=REDACTED \
    --env ADMIN_EMAIL=noreply@example.com \
    --env ADMIN_PASSWORD=REDACTED \
    --env ADMIN_USERNAME=admin \
    --env OAUTH_OKTA_OPENIDCONNECT_KEY=REDACTED \
    --env OAUTH_OKTA_OPENIDCONNECT_SECRET=REDACTED \
    --env OAUTH_OKTA_OPENIDCONNECT_API_URL=https://my-identity.okta.com/api \
    --publish 8000:8000 \
    doccano/doccano:1.2.1
  1. Navigate to doccano in your browser at: http://locahost:8000
  2. Select the “login” button at the top-right of the page

Expected behavior

I expect to see the “Login with Okta” option as depicted in this image

Actual behavior

I end up seeing the same login screen/options that I get when I do not configure Okta OIDC social authentication.

My environment

  • I am running the doccano/doccano:1.2.1 Docker image
  • I am running behind a enterprise firewall with a SSL packet inspection and enterprise certificate authority. Other applications can perform Okta OIDC SSO in this environment, but app eventually needs to recognize system installed trusted CA chain. I do not expect this to be the source of this problem before we actually submit login credentials, however - there is a possibility.
  • docker-desktop v20.10.5 on Windows 10
  • Above command issued from WSL version 1, running WSL (version 1 with Ubuntu 18.04 LTS) bash:
$ uname -a
Linux MY-PC 4.4.0-18362-Microsoft #1049-Microsoft Thu Aug 14 12:01:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
danquackcommented, Jul 29, 2022

Please reopen this issue.

Tried running this with latest…

docker run --interactive --tty \
    --env "ADMIN_EMAIL=noreply@example.com" \
    --env "ADMIN_PASSWORD=password" \
    --env "ADMIN_USERNAME=admin" \
    --env "OAUTH_OKTA_OPENIDCONNECT_KEY=redacted" \
    --env "OAUTH_OKTA_OPENIDCONNECT_SECRET=redacted" \
    --env "OAUTH_OKTA_OPENIDCONNECT_API_URL=x.okta.com" \
    --publish 8000:8000 \
    doccano/doccano

When speaking directly to the backend I get a 500 server error, when speaking to the frontend I get a 404 at social/complete/okta-openidconnect/

2reactions
ljadescommented, Mar 24, 2021

+1 to this. Would love to be able to use OIDC on the new login.

The project since that older commit has a lot of improvements that I’d rather keep, and I’m also not familiar enough with Nuxt / Vue. If I have the bandwidth maybe I’ll try to work on it in the future if it’s not resolved by then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Okta-to-Okta Social Login fails: The UserInfo response from ...
Hello, It sounds like the issuer URL might be wrong (or mismatched). Can you login to the workforce Org; Navigate to the oidc...
Read more >
Amazon - Social Login | Okta Developer
Configure a social Identity Provider so that your users can quickly sign up or sign in to your application by using their social...
Read more >
OIDC login redirect not working - Okta Developer forums
I get to okta login page and upon successful login, land up on my company's okta home instead of getting back in my...
Read more >
User cant login: "User canceled the social login request"
I tried creating a list of users via script using the okta endpoint: https://{okta_domain}/api/v1/users?provider=true With the credentials ...
Read more >
Add a social login (IdP) - Okta Documentation
Key Benefits of Social Authentication. No need to build and maintain your own user database, engineer a sign-on and authentication infrastructure, or manage ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found