Code Monkey home page Code Monkey logo

Comments (5)

forescout-spollock avatar forescout-spollock commented on June 7, 2024 1

Hi Dan,

it's set in the .env file, same directory as docker-compose.yml


# The below url has to be set if using social auth options

# or if you are not using BookStack at the root path of your domain.

APP_URL=https://dev-wiki.fsu.com​

and my docker-compose.yml

version: '2'
services:
 bookstack:
    image: solidnerd/bookstack:0.21.0
    restart: always
    environment:
    - DB_HOST=dsdfsdfsdf.cccskphrgnlg.us-xxx-1.rds.amazonaws.com:3306
    - DB_DATABASE=bookstack
    - DB_USERNAME=secretuser
    - DB_PASSWORD=secretpassword
    env_file: .env
    volumes:
    - uploads:/var/www/bookstack/public/uploads
    - storage-uploads:/var/www/bookstack/public/storage
    ports:
    - "8080:80"

volumes:
 uploads:
 storage-uploads:

from docker-bookstack.

ssddanbrown avatar ssddanbrown commented on June 7, 2024

Hi @forescout-spollock,
Have you tried setting APP_URL=https://dev-wiki.fsu.com as an environment variable at all? Setting that should force a set base on all URLs generated in the system.

from docker-bookstack.

jacksonp2008 avatar jacksonp2008 commented on June 7, 2024

Any other ideas guys?

from docker-bookstack.

forescout-spollock avatar forescout-spollock commented on June 7, 2024

I had OKTA go through this trace. the http appears to be coming from the bookstack application.

Here is what they are saying:

To summarize our call, we identified the  GET /authorize request/response to and from Okta to your application from the chrome browser dev tools. We also saw that the 'code' response was sent to https://dev-wiki.forescoutuniversity.com/login/service/okta/callback.

And from Okta logs, we captured the logs pertaining to /oauth2/v1/token request showing that the tokens were sent in the response successfully.

The issue could be at the application end. Hence I request you to troubleshoot more on how the application handles the tokens returned by Okta and what it does next to figure out who is redirecting to http://dev-wiki.forescoutuniversity.com. 

More pointers:

Like discussed, in the Authorization Code Flow, we have two steps,

1. GET /authorize to get the code in the redirect_uri (https://developer.okta.com/docs/api/resources/oidc#authorize)
2. POST to /oauth2/v1/token endpoint along with code to get the tokens (https://developer.okta.com/docs/api/resources/oidc#token)

You can find more information here: 

https://developer.okta.com/authentication-guide/implementing-authentication/auth-code

from docker-bookstack.

stale avatar stale commented on June 7, 2024

This issue has been automatically marked as stale because it has not had any activity for the last 30 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.

from docker-bookstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.