<commit_before># =======================
# Shiro INI configuration
# =======================

[main]
# Objects and their properties are defined here,
# Such as the securityManager, Realms and anything
# else needed to build the SecurityManager

#authenticator
authenticator = org.eclipse.kapua.service.authentication.shiro.KapuaAuthenticator
securityManager.authenticator = $authenticator

#
# Auth filters
kapuaAuthcAccessToken = org.<PASSWORD>.kapua.app.api.auth.KapuaTokenAuthenticationFilter

##########
# Realms #
##########
# Login
kapuaUserPassAuthenticatingRealm = org.eclipse.kapua.service.authentication.shiro.realm.UserPassAuthenticatingRealm
kapuaApiKeyAuthenticatingRealm = org.eclipse.kapua.service.authentication.shiro.realm.ApiKeyAuthenticatingRealm
kapuaJwtAuthenticatingRealm = org.eclipse.kapua.service.authentication.shiro.realm.JwtAuthenticatingRealm

# Session
kapuaAccessTokenAuthenticatingRealm = org.eclipse.kapua.service.authentication.shiro.realm.AccessTokenAuthenticatingRealm

# Authorization
kapuaAuthorizingRealm = org.eclipse.kapua.service.authorization.shiro.KapuaAuthorizingRealm

securityManager.realms = $kapuaAuthorizingRealm, $kapuaAccessTokenAuthenticatingRealm, $kapuaApiKeyAuthenticatingRealm, $kapuaUserPassAuthenticatingRealm, $kapuaJwtAuthenticatingRealm

# 90*24*60*60 seconds = 90 days = 7776000 seconds
securityManager.rememberMeManager.cookie.name = kapua-rememberme
securityManager.rememberMeManager.cookie.maxAge = 0

[users]
# The 'users' section is for simple deployments
# when you only need a small number of statically-defined
# set of User accounts.

[roles]
# The 'roles' section is for simple deployments
# when you only need a small number of statically-defined
# roles.

[urls]
# The 'urls' section is used for url-based security
# in web applications.  We'll discuss this section in the
# Web documentation
/v1/test						= kapuaAuthcAccessToken, noSessionCreation
/v1/authentication/logout		= kapuaAuthcAccessToken, noSessionCreation
/v1/*/accounts.xml				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/accounts.json				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/accounts/**				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/clients.xml			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/clients.json			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/clients/**			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/channels.xml			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/channels.json		= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/channels/**			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/devices.json				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/devices.xml				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/devices/**				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/deviceconnections.json	= kapuaAuthcAccessToken, noSessionCreation
/v1/*/deviceconnections.xml		= kapuaAuthcAccessToken, noSessionCreation
/v1/*/deviceconnections/**		= kapuaAuthcAccessToken, noSessionCreation
/v1/*/credentials.json			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/credentials.xml			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/credentials/**			= kapuaAuthcAccessToken, noSessionCreation<commit_msg>Updated shiro.ini configuration for Metrics REST API resource<commit_after># =======================
# Shiro INI configuration
# =======================

[main]
# Objects and their properties are defined here,
# Such as the securityManager, Realms and anything
# else needed to build the SecurityManager

#authenticator
authenticator = org.eclipse.kapua.service.authentication.shiro.KapuaAuthenticator
securityManager.authenticator = $authenticator

#
# Auth filters
kapuaAuthcAccessToken = org.eclipse.kapua.app.api.auth.KapuaTokenAuthenticationFilter

##########
# Realms #
##########
# Login
kapuaUserPassAuthenticatingRealm = org.eclipse.kapua.service.authentication.shiro.realm.UserPassAuthenticatingRealm
kapuaApiKeyAuthenticatingRealm = org.eclipse.kapua.service.authentication.shiro.realm.ApiKeyAuthenticatingRealm
kapuaJwtAuthenticatingRealm = org.eclipse.kapua.service.authentication.shiro.realm.JwtAuthenticatingRealm

# Session
kapuaAccessTokenAuthenticatingRealm = org.eclipse.kapua.service.authentication.shiro.realm.AccessTokenAuthenticatingRealm

# Authorization
kapuaAuthorizingRealm = org.eclipse.kapua.service.authorization.shiro.KapuaAuthorizingRealm

securityManager.realms = $kapuaAuthorizingRealm, $kapuaAccessTokenAuthenticatingRealm, $kapuaApiKeyAuthenticatingRealm, $kapuaUserPassAuthenticatingRealm, $kapuaJwtAuthenticatingRealm

# 90*24*60*60 seconds = 90 days = 7776000 seconds
securityManager.rememberMeManager.cookie.name = kapua-rememberme
securityManager.rememberMeManager.cookie.maxAge = 0

[users]
# The 'users' section is for simple deployments
# when you only need a small number of statically-defined
# set of User accounts.

[roles]
# The 'roles' section is for simple deployments
# when you only need a small number of statically-defined
# roles.

[urls]
# The 'urls' section is used for url-based security
# in web applications.  We'll discuss this section in the
# Web documentation
/v1/test						= kapuaAuthcAccessToken, noSessionCreation
/v1/authentication/logout		= kapuaAuthcAccessToken, noSessionCreation
/v1/*/accounts.xml				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/accounts.json				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/accounts/**				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/clients.xml			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/clients.json			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/clients/**			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/channels.xml			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/channels.json		= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/channels/**			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/metrics.xml			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/metrics.json			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/data/metrics/**			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/devices.json				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/devices.xml				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/devices/**				= kapuaAuthcAccessToken, noSessionCreation
/v1/*/deviceconnections.json	= kapuaAuthcAccessToken, noSessionCreation
/v1/*/deviceconnections.xml		= kapuaAuthcAccessToken, noSessionCreation
/v1/*/deviceconnections/**		= kapuaAuthcAccessToken, noSessionCreation
/v1/*/credentials.json			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/credentials.xml			= kapuaAuthcAccessToken, noSessionCreation
/v1/*/credentials/**			= kapuaAuthcAccessToken, noSessionCreation
{'fraction_non_alphanumeric': 0.10901749663526245, 'fraction_numerical': 0.011813967399431732, 'mean_word_length': 6.253796095444685, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 13}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5510011', 'n_tokens_mistral': 2208, 'n_tokens_neox': 2099, 'n_words': 381}