Commit 34278ebc authored by Robert Butora's avatar Robert Butora
Browse files

removes auth directory and config files from src-tree

parent b83a8311
Loading
Loading
Loading
Loading

auth/Makefile

deleted100644 → 0
+0 −41
Original line number Diff line number Diff line
################################################################################
LIB_DIR  = target/lib
TARGET = $(LIB_DIR)/vlkb-auth.jar
CLASS_DIR = target/classes
VERSION ?= $(shell git describe)
################################################################################
EXT_LIB_DIR  = ../java-libs/lib
################################################################################
JC = javac
JFLAGS = -g
CLASSPATH = $(CLASS_DIR):$(EXT_LIB_DIR)/*
################################################################################
SRC_DIR = src/main/java:src/test/java
SOURCES  = $(wildcard src/*Filter.java) src/main/java/AuthPolicy.java src/test/java/Main.java
################################################################################

all : build

build : jar

.PHONY: classes makedirs clean test

makedirs:
	mkdir -p $(CLASS_DIR) $(LIB_DIR)

classes: makedirs
	$(JC) $(JFLAGS) -cp $(CLASSPATH) -sourcepath $(SRC_DIR) -d $(CLASS_DIR) $(SOURCES)

jar: classes
	jar -cf $(TARGET) -C $(CLASS_DIR) .

clean :
	rm -fr $(CLASS_DIR) $(LIB_DIR)
	rmdir target

run-test:
	java -cp $(CLASSPATH) Main ../test/token.base64

test:
	@echo "SOURCES  : "$(SOURCES)

auth/permissions-table.sql

deleted100644 → 0
+0 −6
Original line number Diff line number Diff line


create table permissions ( obs_publisher_did varchar primary key, groups TEXT[] NULL );

INSERT INTO permissions (obs_publisher_did, groups) VALUES ('ivo://auth.example.org/datasets/fits?cubes/part-Eridanus_full_image_V3.fits#0','{AllPrivate}');
+0 −14
Original line number Diff line number Diff line
client_id=test
client_secret=test-secret
rap_uri=http://localhost/rap-ia2
store_state_on_login_endpoint=true
scope=openid read:userspace write:userspace read:fileserver write:fileserver read:gms read:rap

gms_uri=http://localhost:8082/gms
groups_autoload=false

# default values
access_token_endpoint=/auth/oauth2/token
user_authorization_endpoint=/auth/oauth2/authorize
check_token_endpoint=/auth/oauth2/token
jwks_endpoint=/auth/oidc/jwks

auth/resources/Backup/shiro.ini

deleted100644 → 0
+0 −40
Original line number Diff line number Diff line
#
# Copyright (c) 2013 Les Hazlewood and contributors
#
# 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.
#

# INI configuration is very powerful and flexible, while still remaining succinct.
# Please http://shiro.apache.org/configuration.html and
# http://shiro.apache.org/web.html for more.

[main]
shiro.loginUrl = /login.jsp
cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager
securityManager.cacheManager = $cacheManager
#securityManager.realm = $stormpathRealm

[users]
# syntax: user = password , roles
vialactea = ia2vlkb, ROLE_ADMIN

[roles]
ROLE_ADMIN = *

[urls]
#/login.jsp = authc
/logout = logout
/** = authcBasic
#/ivoa/resources/basic/** = authcBasic
#/ivoa/resources/full/** = authc

auth/resources/auth.properties

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
rap_uri=https://sso.ia2.inaf.it/rap-ia2
gms_uri=https://sso.ia2.inaf.it/gms
client_id=vospace_ui_demo
client_secret=VOSpaceDemo123

groups_autoload=true
store_state_on_login_endpoint=true
scope=openid email profile read:rap

allow_anonymous_access=true
Loading