<gh_stars>1-10
# Copyright 2019 British Broadcasting Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Constants for nmos-auth defining filenames, locations and endpoints"""

import os

# Filenames and Locations
NMOSAUTH_DIR = '/var/nmosauth'
CERT_FILE = 'certificate.pem'
CERT_PATH = os.path.join(NMOSAUTH_DIR, CERT_FILE)
PRIVKEY_FILE = 'privkey.pem'
PRIVKEY_PATH = os.path.join(NMOSAUTH_DIR, PRIVKEY_FILE)
PUBKEY_FILE = 'pubkey.pem'
PUBKEY_PATH = os.path.join(NMOSAUTH_DIR, PUBKEY_FILE)

# API Namespace
APINAMESPACE = "x-nmos"
APINAME = "auth"
APIVERSION = "v1.0"
AUTH_API_ROOT = '/{}/{}'.format(APINAMESPACE, APINAME)
AUTH_VERSION_ROOT = '{}/{}/'.format(AUTH_API_ROOT, APIVERSION)

# Default Endpoints
JWK_ENDPOINT = 'jwks'
TOKEN_ENDPOINT = 'token'
REGISTER_ENDPOINT = 'register'
AUTHORIZATION_ENDPOINT = 'authorize'
REVOCATION_ENDPOINT = 'revoke'
WELL_KNOWN_ENDPOINT = '/.well-known/oauth-authorization-server/'

# Databse Info
DATABASE_NAME = 'auth_db'

# Copyright 2019 British Broadcasting Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Constants for nmos-auth defining filenames, locations and endpoints"""

import os

# Filenames and Locations
NMOSAUTH_DIR = '/var/nmosauth'
CERT_FILE = 'certificate.pem'
CERT_PATH = os.path.join(NMOSAUTH_DIR, CERT_FILE)
PRIVKEY_FILE = 'privkey.pem'
PRIVKEY_PATH = os.path.join(NMOSAUTH_DIR, PRIVKEY_FILE)
PUBKEY_FILE = 'pubkey.pem'
PUBKEY_PATH = os.path.join(NMOSAUTH_DIR, PUBKEY_FILE)

# API Namespace
APINAMESPACE = "x-nmos"
APINAME = "auth"
APIVERSION = "v1.0"
AUTH_API_ROOT = '/{}/{}'.format(APINAMESPACE, APINAME)
AUTH_VERSION_ROOT = '{}/{}/'.format(AUTH_API_ROOT, APIVERSION)

# Default Endpoints
JWK_ENDPOINT = 'jwks'
TOKEN_ENDPOINT = 'token'
REGISTER_ENDPOINT = 'register'
AUTHORIZATION_ENDPOINT = 'authorize'
REVOCATION_ENDPOINT = 'revoke'
WELL_KNOWN_ENDPOINT = '/.well-known/oauth-authorization-server/'

# Databse Info
DATABASE_NAME = 'auth_db'
# Copyright 2019 British Broadcasting Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #     http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. Constants for nmos-auth defining filenames, locations and endpoints # Filenames and Locations # API Namespace # Default Endpoints # Databse Info