Skip to content

Commit

Permalink
clean unused config and views
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote committed Nov 19, 2021
1 parent 9f689b9 commit 61140e2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ First make sure you have installed latest [nodejs](https://nodejs.org/en/downloa
```
cd frontend
npm install
npm start
npm run dev
```
Follow the link in the console.

Expand Down
11 changes: 0 additions & 11 deletions helpdesk/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@
SPINCYCLE_USERNAME = ''
SPINCYCLE_PASSWORD = ''

OPENID_PROVIDER = {
'server_metadata_url': "https://fakekeycloak/auth/realms/apps/.well-known/openid-configuration",
'client_id': 'fakeid'
}

KEYCLOAK_SETTINGS = {
"url": "https://you_keycloak.com/auth",
"realm": "apps",
"clientId": "helpdesk"
}


try:
from local_config import * # NOQA
Expand Down
5 changes: 0 additions & 5 deletions helpdesk/views/auth/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
oauth_clients[provider] = client


@router.get("/oidc-configs.json")
async def oidc_configs() -> dict:
return KEYCLOAK_SETTINGS


@router.get('/oauth/{oauth_provider}')
async def oauth(request: Request):

Expand Down

0 comments on commit 61140e2

Please sign in to comment.