Skip to content

Commit

Permalink
enable CAS locally
Browse files Browse the repository at this point in the history
The button to login via CAS will show up with this change, however, CAS
authentication itself won't work locally (this is expected)
  • Loading branch information
bkiahstroud committed Jul 25, 2024
1 parent 5312e32 commit 340605a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ RAILS_DB_HOST=postgres
RAILS_DB_PORT=5432
RAILS_DB_NAME=manifold_production
RAILS_REDIS_URL=redis://redis:6379

CAS_CLIENT_ID=AAABBBCCCDDDEEEFFF
CAS_CLIENT_SECRET=AAABBBCCCDDDEEEFFF
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
FROM ruby:2.7.8 as manifold-api
RUN apt-get -o Acquire::Check-Valid-Until=false update
RUN apt-get install -y libicu-dev postgresql-client nano curl software-properties-common ghostscript \
vim less
vim less gettext

# We need Node and Mammoth for Word text ingestion
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
Expand All @@ -21,6 +21,7 @@ RUN sed -i '/<policy domain="coder" rights="none" pattern="PDF" \/>/d' \
COPY api /opt/manifold/api
WORKDIR /opt/manifold/api
ENV RAILS_LOG_TO_STDOUT=1
RUN envsubst < config/oauth.tmpl.yml > config/oauth.yml
RUN gem install bundler:2.2.19
RUN bundle install
COPY bin/start-and-run /opt/manifold/api/start-and-run
Expand Down

0 comments on commit 340605a

Please sign in to comment.