tba-runtime-oidc-provider-logout 0.4.0.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tba_runtime_oidc_provider_logout/__init__.py +30 -0
- tba_runtime_oidc_provider_logout/contracts.py +77 -0
- tba_runtime_oidc_provider_logout/py.typed +0 -0
- tba_runtime_oidc_provider_logout/runtime.py +187 -0
- tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/METADATA +345 -0
- tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/RECORD +9 -0
- tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/WHEEL +4 -0
- tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/licenses/LICENSE +201 -0
- tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/licenses/NOTICE +10 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Reusable OpenID Provider end-session runtime."""
|
|
2
|
+
|
|
3
|
+
from .contracts import (
|
|
4
|
+
LogoutAttempt,
|
|
5
|
+
LogoutAttempts,
|
|
6
|
+
LogoutRejected,
|
|
7
|
+
LogoutRequest,
|
|
8
|
+
LogoutResult,
|
|
9
|
+
LogoutRevoker,
|
|
10
|
+
LogoutSession,
|
|
11
|
+
LogoutStatus,
|
|
12
|
+
LogoutValidator,
|
|
13
|
+
ValidatedLogout,
|
|
14
|
+
)
|
|
15
|
+
from .runtime import LogoutRuntime, append_logout_state
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"LogoutAttempt",
|
|
19
|
+
"LogoutAttempts",
|
|
20
|
+
"LogoutRejected",
|
|
21
|
+
"LogoutRequest",
|
|
22
|
+
"LogoutResult",
|
|
23
|
+
"LogoutRevoker",
|
|
24
|
+
"LogoutRuntime",
|
|
25
|
+
"LogoutSession",
|
|
26
|
+
"LogoutStatus",
|
|
27
|
+
"LogoutValidator",
|
|
28
|
+
"ValidatedLogout",
|
|
29
|
+
"append_logout_state",
|
|
30
|
+
]
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Awaitable, Callable
|
|
4
|
+
from dataclasses import dataclass
|
|
5
|
+
from enum import Enum
|
|
6
|
+
from typing import Protocol
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass(frozen=True)
|
|
10
|
+
class LogoutRequest:
|
|
11
|
+
issuer: str
|
|
12
|
+
client_id: str | None = None
|
|
13
|
+
id_token_hint: str | None = None
|
|
14
|
+
post_logout_redirect_uri: str | None = None
|
|
15
|
+
state: str | None = None
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@dataclass(frozen=True)
|
|
19
|
+
class LogoutSession:
|
|
20
|
+
issuer: str
|
|
21
|
+
session_id: str
|
|
22
|
+
subject: str
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@dataclass(frozen=True)
|
|
26
|
+
class ValidatedLogout:
|
|
27
|
+
client_id: str | None
|
|
28
|
+
redirect_uri: str | None
|
|
29
|
+
hint_matches_session: bool = False
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class LogoutRejected(ValueError):
|
|
33
|
+
"""The request or its session binding could not be authenticated."""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class LogoutStatus(str, Enum):
|
|
37
|
+
HANDOFF_REQUIRED = "handoff_required"
|
|
38
|
+
CONFIRMATION_REQUIRED = "confirmation_required"
|
|
39
|
+
COMPLETED = "completed"
|
|
40
|
+
NO_SESSION = "no_session"
|
|
41
|
+
CANCELLED = "cancelled"
|
|
42
|
+
REJECTED = "rejected"
|
|
43
|
+
UNAVAILABLE = "unavailable"
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@dataclass(frozen=True)
|
|
47
|
+
class LogoutResult:
|
|
48
|
+
status: LogoutStatus
|
|
49
|
+
redirect_uri: str | None = None
|
|
50
|
+
token: str | None = None
|
|
51
|
+
session: LogoutSession | None = None
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@dataclass(frozen=True)
|
|
55
|
+
class LogoutAttempt:
|
|
56
|
+
request: LogoutRequest
|
|
57
|
+
session: LogoutSession | None
|
|
58
|
+
client_id: str | None
|
|
59
|
+
browser_binding: str
|
|
60
|
+
expires_at: float
|
|
61
|
+
confirmation: bool
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class LogoutAttempts(Protocol):
|
|
65
|
+
async def save(self, token: str, attempt: LogoutAttempt) -> None: ...
|
|
66
|
+
|
|
67
|
+
async def consume(
|
|
68
|
+
self, token: str, *, issuer: str, browser_binding: str, now: float
|
|
69
|
+
) -> LogoutAttempt | None:
|
|
70
|
+
"""Atomically return and remove a matching, unexpired attempt."""
|
|
71
|
+
...
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
LogoutValidator = Callable[
|
|
75
|
+
[LogoutRequest, LogoutSession | None], Awaitable[ValidatedLogout]
|
|
76
|
+
]
|
|
77
|
+
LogoutRevoker = Callable[[LogoutSession, ValidatedLogout], Awaitable[bool]]
|
|
File without changes
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Callable
|
|
4
|
+
from secrets import token_urlsafe
|
|
5
|
+
from time import time
|
|
6
|
+
from urllib.parse import urlencode
|
|
7
|
+
|
|
8
|
+
from .contracts import (
|
|
9
|
+
LogoutAttempt,
|
|
10
|
+
LogoutAttempts,
|
|
11
|
+
LogoutRejected,
|
|
12
|
+
LogoutRequest,
|
|
13
|
+
LogoutResult,
|
|
14
|
+
LogoutRevoker,
|
|
15
|
+
LogoutSession,
|
|
16
|
+
LogoutStatus,
|
|
17
|
+
LogoutValidator,
|
|
18
|
+
ValidatedLogout,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def append_logout_state(redirect_uri: str | None, state: str | None) -> str | None:
|
|
23
|
+
if redirect_uri is None or not state:
|
|
24
|
+
return redirect_uri
|
|
25
|
+
base, marker, fragment = redirect_uri.partition("#")
|
|
26
|
+
separator = "&" if "?" in base else "?"
|
|
27
|
+
return base + separator + urlencode({"state": state}) + marker + fragment
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class LogoutRuntime:
|
|
31
|
+
"""Coordinate validated requests and atomically consumed browser attempts."""
|
|
32
|
+
|
|
33
|
+
def __init__(
|
|
34
|
+
self,
|
|
35
|
+
validate: LogoutValidator,
|
|
36
|
+
revoke: LogoutRevoker,
|
|
37
|
+
attempts: LogoutAttempts,
|
|
38
|
+
*,
|
|
39
|
+
ttl_seconds: float = 300,
|
|
40
|
+
now: Callable[[], float] = time,
|
|
41
|
+
) -> None:
|
|
42
|
+
if not 0 < ttl_seconds <= 900:
|
|
43
|
+
raise ValueError("logout attempt TTL must be between zero and 900 seconds")
|
|
44
|
+
self.validate = validate
|
|
45
|
+
self.revoke = revoke
|
|
46
|
+
self.attempts = attempts
|
|
47
|
+
self.ttl_seconds = ttl_seconds
|
|
48
|
+
self.now = now
|
|
49
|
+
|
|
50
|
+
async def _save(
|
|
51
|
+
self,
|
|
52
|
+
request: LogoutRequest,
|
|
53
|
+
session: LogoutSession | None,
|
|
54
|
+
client_id: str | None,
|
|
55
|
+
browser_binding: str,
|
|
56
|
+
*,
|
|
57
|
+
confirmation: bool,
|
|
58
|
+
) -> LogoutResult:
|
|
59
|
+
if not request.issuer or not browser_binding:
|
|
60
|
+
return LogoutResult(LogoutStatus.REJECTED)
|
|
61
|
+
token = token_urlsafe(32)
|
|
62
|
+
attempt = LogoutAttempt(
|
|
63
|
+
request,
|
|
64
|
+
session,
|
|
65
|
+
client_id,
|
|
66
|
+
browser_binding,
|
|
67
|
+
self.now() + self.ttl_seconds,
|
|
68
|
+
confirmation,
|
|
69
|
+
)
|
|
70
|
+
try:
|
|
71
|
+
await self.attempts.save(token, attempt)
|
|
72
|
+
except OSError:
|
|
73
|
+
return LogoutResult(LogoutStatus.UNAVAILABLE)
|
|
74
|
+
status = (
|
|
75
|
+
LogoutStatus.CONFIRMATION_REQUIRED
|
|
76
|
+
if confirmation
|
|
77
|
+
else LogoutStatus.HANDOFF_REQUIRED
|
|
78
|
+
)
|
|
79
|
+
return LogoutResult(status, token=token)
|
|
80
|
+
|
|
81
|
+
async def handoff(
|
|
82
|
+
self, request: LogoutRequest, *, browser_binding: str
|
|
83
|
+
) -> LogoutResult:
|
|
84
|
+
"""Stage a cross-site request without treating it as an authenticated session."""
|
|
85
|
+
return await self._save(
|
|
86
|
+
request, None, None, browser_binding, confirmation=False
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
async def _validated(
|
|
90
|
+
self, request: LogoutRequest, session: LogoutSession | None
|
|
91
|
+
) -> ValidatedLogout:
|
|
92
|
+
if not request.issuer or (
|
|
93
|
+
session is not None and session.issuer != request.issuer
|
|
94
|
+
):
|
|
95
|
+
raise LogoutRejected("logout issuer does not match the browser session")
|
|
96
|
+
validated = await self.validate(request, session)
|
|
97
|
+
if validated.redirect_uri != request.post_logout_redirect_uri:
|
|
98
|
+
raise LogoutRejected(
|
|
99
|
+
"logout validation did not confirm the exact redirect URI"
|
|
100
|
+
)
|
|
101
|
+
if request.client_id is not None and validated.client_id != request.client_id:
|
|
102
|
+
raise LogoutRejected(
|
|
103
|
+
"logout validation did not confirm the requested client"
|
|
104
|
+
)
|
|
105
|
+
if validated.redirect_uri is not None and validated.client_id is None:
|
|
106
|
+
raise LogoutRejected("logout redirect has no verified client")
|
|
107
|
+
return validated
|
|
108
|
+
|
|
109
|
+
async def _complete(
|
|
110
|
+
self,
|
|
111
|
+
request: LogoutRequest,
|
|
112
|
+
session: LogoutSession,
|
|
113
|
+
validated: ValidatedLogout,
|
|
114
|
+
) -> LogoutResult:
|
|
115
|
+
redirect = append_logout_state(validated.redirect_uri, request.state)
|
|
116
|
+
if not await self.revoke(session, validated):
|
|
117
|
+
return LogoutResult(LogoutStatus.UNAVAILABLE)
|
|
118
|
+
return LogoutResult(LogoutStatus.COMPLETED, redirect, session=session)
|
|
119
|
+
|
|
120
|
+
async def begin(
|
|
121
|
+
self,
|
|
122
|
+
request: LogoutRequest,
|
|
123
|
+
session: LogoutSession | None,
|
|
124
|
+
*,
|
|
125
|
+
browser_binding: str,
|
|
126
|
+
) -> LogoutResult:
|
|
127
|
+
try:
|
|
128
|
+
validated = await self._validated(request, session)
|
|
129
|
+
if session is None:
|
|
130
|
+
return LogoutResult(
|
|
131
|
+
LogoutStatus.NO_SESSION,
|
|
132
|
+
append_logout_state(validated.redirect_uri, request.state),
|
|
133
|
+
)
|
|
134
|
+
if request.id_token_hint and validated.hint_matches_session:
|
|
135
|
+
return await self._complete(request, session, validated)
|
|
136
|
+
return await self._save(
|
|
137
|
+
request,
|
|
138
|
+
session,
|
|
139
|
+
validated.client_id,
|
|
140
|
+
browser_binding,
|
|
141
|
+
confirmation=True,
|
|
142
|
+
)
|
|
143
|
+
except LogoutRejected:
|
|
144
|
+
return LogoutResult(LogoutStatus.REJECTED)
|
|
145
|
+
except OSError:
|
|
146
|
+
return LogoutResult(LogoutStatus.UNAVAILABLE)
|
|
147
|
+
|
|
148
|
+
async def resume(
|
|
149
|
+
self,
|
|
150
|
+
token: str,
|
|
151
|
+
issuer: str,
|
|
152
|
+
session: LogoutSession | None,
|
|
153
|
+
*,
|
|
154
|
+
browser_binding: str,
|
|
155
|
+
confirmed: bool | None = None,
|
|
156
|
+
) -> LogoutResult:
|
|
157
|
+
if not token or not issuer or not browser_binding:
|
|
158
|
+
return LogoutResult(LogoutStatus.REJECTED)
|
|
159
|
+
try:
|
|
160
|
+
now = self.now()
|
|
161
|
+
attempt = await self.attempts.consume(
|
|
162
|
+
token, issuer=issuer, browser_binding=browser_binding, now=now
|
|
163
|
+
)
|
|
164
|
+
if (
|
|
165
|
+
attempt is None
|
|
166
|
+
or attempt.request.issuer != issuer
|
|
167
|
+
or attempt.browser_binding != browser_binding
|
|
168
|
+
or attempt.expires_at <= now
|
|
169
|
+
or attempt.confirmation != (confirmed is not None)
|
|
170
|
+
):
|
|
171
|
+
return LogoutResult(LogoutStatus.REJECTED)
|
|
172
|
+
if not attempt.confirmation:
|
|
173
|
+
return await self.begin(
|
|
174
|
+
attempt.request, session, browser_binding=browser_binding
|
|
175
|
+
)
|
|
176
|
+
if session is None or session != attempt.session:
|
|
177
|
+
return LogoutResult(LogoutStatus.REJECTED)
|
|
178
|
+
if confirmed is False:
|
|
179
|
+
return LogoutResult(LogoutStatus.CANCELLED)
|
|
180
|
+
validated = await self._validated(attempt.request, session)
|
|
181
|
+
if validated.client_id != attempt.client_id:
|
|
182
|
+
return LogoutResult(LogoutStatus.REJECTED)
|
|
183
|
+
return await self._complete(attempt.request, session, validated)
|
|
184
|
+
except LogoutRejected:
|
|
185
|
+
return LogoutResult(LogoutStatus.REJECTED)
|
|
186
|
+
except OSError:
|
|
187
|
+
return LogoutResult(LogoutStatus.UNAVAILABLE)
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tba-runtime-oidc-provider-logout
|
|
3
|
+
Version: 0.4.0.dev0
|
|
4
|
+
Summary: Transport-neutral OpenID Provider end-session lifecycle.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Keywords: tigrbl,oidc,end-session,logout
|
|
9
|
+
Author: Jacob Stewart
|
|
10
|
+
Author-email: jacob@swarmauri.com
|
|
11
|
+
Requires-Python: >=3.10,<3.16
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
18
|
+
Classifier: Topic :: Security
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
26
|
+
Project-URL: Documentation, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout#readme
|
|
27
|
+
Project-URL: Homepage, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout#readme
|
|
28
|
+
Project-URL: Issues, https://github.com/tigrbl/tigrbl_auth/issues
|
|
29
|
+
Project-URL: PyPI, https://pypi.org/project/tba-runtime-oidc-provider-logout/
|
|
30
|
+
Project-URL: Repository, https://github.com/tigrbl/tigrbl_auth
|
|
31
|
+
Project-URL: SSOT, https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json
|
|
32
|
+
Project-URL: Source, https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
34
|
+
|
|
35
|
+
# tba-runtime-oidc-provider-logout
|
|
36
|
+
|
|
37
|
+
<!-- readme-standards:begin branding -->
|
|
38
|
+
<p align="center"><a href="https://github.com/tigrbl/tigrbl_auth"><img src="https://raw.githubusercontent.com/tigrbl/tigrbl_auth/master/docs/assets/tba-brand.png" alt="TBA · Tigrbl Auth" width="300"></a></p>
|
|
39
|
+
<p align="center"><strong>tba-runtime-oidc-provider-logout</strong></p>
|
|
40
|
+
<p align="center">Transport-neutral OpenID Provider end-session lifecycle.</p>
|
|
41
|
+
<p align="center">
|
|
42
|
+
<a href="https://pypi.org/project/tba-runtime-oidc-provider-logout/"><img alt="pypi: tba-runtime-oidc-provider-logout unpublished" src="https://img.shields.io/static/v1?label=pypi&message=tba-runtime-oidc-provider-logout%20unpublished&labelColor=1E293B&color=92400E"></a>
|
|
43
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/pyproject.toml"><img alt="Source version: 0.4.0.dev0" src="https://img.shields.io/static/v1?label=Source%20version&message=0.4.0.dev0&labelColor=1E293B&color=4338CA"></a>
|
|
44
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/pyproject.toml"><img alt="Python: >=3.10,<3.16" src="https://img.shields.io/static/v1?label=Python&message=%3E%3D3.10%2C%3C3.16&labelColor=1E293B&color=0F766E"></a>
|
|
45
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/pyproject.toml"><img alt="Layer: 060-runtime" src="https://img.shields.io/static/v1?label=Layer&message=060-runtime&labelColor=1E293B&color=6D28D9"></a>
|
|
46
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&message=active&labelColor=1E293B&color=166534"></a>
|
|
47
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&labelColor=1E293B&color=86198F"></a>
|
|
48
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&message=attribution&labelColor=1E293B&color=86198F"></a>
|
|
49
|
+
</p>
|
|
50
|
+
<p align="center">
|
|
51
|
+
<a href="https://pypi.org/project/tba-runtime-oidc-provider-logout/"><img alt="pypi downloads: tba-runtime-oidc-provider-logout: unpublished" src="https://img.shields.io/static/v1?label=pypi%20downloads&message=tba-runtime-oidc-provider-logout%3A%20unpublished&labelColor=1E293B&color=92400E"></a>
|
|
52
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/README.md"><img alt="README hits: tba-runtime-oidc-provider-logout" src="https://hits.sh/github.com/tigrbl/tigrbl_auth/pkgs/060-runtime/tba-runtime-oidc-provider-logout/README.md.svg?label=README%20hits&labelColor=1E293B&color=0E7490"></a>
|
|
53
|
+
</p>
|
|
54
|
+
<p align="center">
|
|
55
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&message=CI%20gate&labelColor=1E293B&color=1D4ED8"></a>
|
|
56
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/docs/readme/test_examples.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&message=example%20source&labelColor=1E293B&color=0F766E"></a>
|
|
57
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&message=not%20certified&labelColor=1E293B&color=92400E"></a>
|
|
58
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&message=repository%20policy&labelColor=1E293B&color=4338CA"></a>
|
|
59
|
+
<a href="https://github.com/tigrbl/tigrbl_auth/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&message=source%20and%20CI&labelColor=1E293B&color=6D28D9"></a>
|
|
60
|
+
</p>
|
|
61
|
+
<p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
|
|
62
|
+
<!-- readme-standards:end branding -->
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Overview
|
|
67
|
+
|
|
68
|
+
### Summary
|
|
69
|
+
|
|
70
|
+
OpenID Provider end-session orchestration for issuer-bound browser sessions.
|
|
71
|
+
|
|
72
|
+
### Why This Package
|
|
73
|
+
|
|
74
|
+
A provider can use the same confirmation, revocation, and return rules across transports and deployments.
|
|
75
|
+
|
|
76
|
+
### When to Use
|
|
77
|
+
|
|
78
|
+
Compose the runtime with your provider's client registry, session service, and browser transaction storage.
|
|
79
|
+
|
|
80
|
+
### Features
|
|
81
|
+
|
|
82
|
+
- Cross-site form handoff and explicit logout confirmation.
|
|
83
|
+
- Expiring attempts bound to the issuer and browser and consumed once.
|
|
84
|
+
- Scoped session revocation and exact redirect validation before returning state.
|
|
85
|
+
|
|
86
|
+
### Non-Goals
|
|
87
|
+
|
|
88
|
+
The host owns issuer resolution, client and redirect registration, verified hint inspection, browser proofs, and cookie delivery.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Getting Started
|
|
93
|
+
|
|
94
|
+
### Prerequisites
|
|
95
|
+
|
|
96
|
+
Use Python 3.10 or newer and supply validation, revocation, and atomic attempt storage adapters.
|
|
97
|
+
|
|
98
|
+
### Installation
|
|
99
|
+
|
|
100
|
+
Install from the package's source directory to evaluate an unreleased checkout.
|
|
101
|
+
|
|
102
|
+
#### uv
|
|
103
|
+
|
|
104
|
+
<!-- readme-standards:begin installation.uv -->
|
|
105
|
+
`tba-runtime-oidc-provider-logout` is not declared published. From the source checkout:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
uv pip install .
|
|
109
|
+
```
|
|
110
|
+
<!-- readme-standards:end installation.uv -->
|
|
111
|
+
|
|
112
|
+
#### pip
|
|
113
|
+
|
|
114
|
+
<!-- readme-standards:begin installation.pip -->
|
|
115
|
+
`tba-runtime-oidc-provider-logout` is not declared published. From the source checkout:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
python -m pip install .
|
|
119
|
+
```
|
|
120
|
+
<!-- readme-standards:end installation.pip -->
|
|
121
|
+
|
|
122
|
+
#### Poetry
|
|
123
|
+
|
|
124
|
+
<!-- readme-standards:begin installation.poetry -->
|
|
125
|
+
`tba-runtime-oidc-provider-logout` is not declared published. From a separate Poetry project, replace the path with your checkout:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
poetry add /path/to/tba-runtime-oidc-provider-logout
|
|
129
|
+
```
|
|
130
|
+
<!-- readme-standards:end installation.poetry -->
|
|
131
|
+
|
|
132
|
+
### Quick Start
|
|
133
|
+
|
|
134
|
+
#### Example
|
|
135
|
+
|
|
136
|
+
<!-- readme-standards:begin example.quick-start -->
|
|
137
|
+
Source: [docs/readme/quick_start.py](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/docs/readme/quick_start.py).
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
from tba_runtime_oidc_provider_logout import LogoutRequest
|
|
141
|
+
|
|
142
|
+
request = LogoutRequest(
|
|
143
|
+
issuer="https://authority.example",
|
|
144
|
+
client_id="my-app",
|
|
145
|
+
post_logout_redirect_uri="https://app.example/signed-out",
|
|
146
|
+
state="browser-transaction",
|
|
147
|
+
)
|
|
148
|
+
assert request.client_id == "my-app"
|
|
149
|
+
```
|
|
150
|
+
<!-- readme-standards:end example.quick-start -->
|
|
151
|
+
|
|
152
|
+
#### Expected Result
|
|
153
|
+
|
|
154
|
+
The example represents the issuer, client, registered redirect, and state as a typed request.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Usage
|
|
159
|
+
|
|
160
|
+
### Common Workflows
|
|
161
|
+
|
|
162
|
+
<!-- readme-standards:begin example.usage -->
|
|
163
|
+
Source: [docs/readme/usage.py](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/docs/readme/usage.py).
|
|
164
|
+
|
|
165
|
+
```python
|
|
166
|
+
from tba_runtime_oidc_provider_logout import append_logout_state
|
|
167
|
+
|
|
168
|
+
redirect = append_logout_state(
|
|
169
|
+
"https://app.example/signed-out?lang=en", "browser/transaction"
|
|
170
|
+
)
|
|
171
|
+
assert redirect == (
|
|
172
|
+
"https://app.example/signed-out?lang=en&state=browser%2Ftransaction"
|
|
173
|
+
)
|
|
174
|
+
```
|
|
175
|
+
<!-- readme-standards:end example.usage -->
|
|
176
|
+
|
|
177
|
+
### Configuration
|
|
178
|
+
|
|
179
|
+
Set the attempt lifetime with `ttl_seconds`. The default is 300 seconds, with a maximum of 900 seconds.
|
|
180
|
+
|
|
181
|
+
### Error Handling
|
|
182
|
+
|
|
183
|
+
Inspect `LogoutResult.status` for confirmation, handoff, completion, cancellation, rejection, or temporary unavailability.
|
|
184
|
+
|
|
185
|
+
### Best Practices
|
|
186
|
+
|
|
187
|
+
Use `begin` when the browser context is present and `handoff` to preserve a cross-site form submission until the first-party session is available. Check the confirmation request's origin or CSRF proof before calling `resume` with a decision.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Package Boundary
|
|
192
|
+
|
|
193
|
+
### What It Owns
|
|
194
|
+
|
|
195
|
+
The package owns the lifecycle from request validation through attempt handling, confirmation, revocation, and state return.
|
|
196
|
+
|
|
197
|
+
### Public API and Import Surfaces
|
|
198
|
+
|
|
199
|
+
Import `LogoutRuntime`, `LogoutRequest`, `LogoutSession`, `ValidatedLogout`, and `LogoutResult` from `tba_runtime_oidc_provider_logout`.
|
|
200
|
+
|
|
201
|
+
### Entry Points
|
|
202
|
+
|
|
203
|
+
<!-- readme-standards:begin entry-points -->
|
|
204
|
+
This package declares no command-line, GUI, or plugin entry points in its manifest.
|
|
205
|
+
<!-- readme-standards:end entry-points -->
|
|
206
|
+
|
|
207
|
+
Call `begin`, `handoff`, and `resume` on `LogoutRuntime` from the provider's HTTP or other transport adapter.
|
|
208
|
+
|
|
209
|
+
### Injected Dependencies
|
|
210
|
+
|
|
211
|
+
Provide a validator, a session revoker, and a `LogoutAttempts` store whose consume operation checks the issuer, browser binding, and expiry atomically.
|
|
212
|
+
|
|
213
|
+
### Protocol Consumers
|
|
214
|
+
|
|
215
|
+
An OpenID Provider may compose the runtime with an OIDC discovery document and end-session endpoint.
|
|
216
|
+
|
|
217
|
+
### Extensions
|
|
218
|
+
|
|
219
|
+
Use storage and transport adapters to implement persistence and confirmation without changing lifecycle rules.
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Operations and Readiness
|
|
224
|
+
|
|
225
|
+
### Operational Requirements
|
|
226
|
+
|
|
227
|
+
Persist pending attempts in shared storage for multi-worker deployments and scope revocation to the selected provider session.
|
|
228
|
+
|
|
229
|
+
### Health and Observability
|
|
230
|
+
|
|
231
|
+
Record outcome categories and operational errors. Keep raw token hints, attempt handles, browser bindings, and redirect state out of logs.
|
|
232
|
+
|
|
233
|
+
### Security and Resource Limits
|
|
234
|
+
|
|
235
|
+
Use a durable store with atomic single-use consumption, enforce request and attempt limits at the host boundary, and expire stored attempts.
|
|
236
|
+
|
|
237
|
+
### Compatibility
|
|
238
|
+
|
|
239
|
+
This is the first release of the runtime. Check the existing provider behavior against the adapter contract before switching routes.
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## Verification
|
|
244
|
+
|
|
245
|
+
### Tests
|
|
246
|
+
|
|
247
|
+
Run the independent provider logout integration fixture and the OIDC logout HTTP binding tests in the TBA test workspace.
|
|
248
|
+
|
|
249
|
+
### Certification Status
|
|
250
|
+
|
|
251
|
+
Release certification requires recorded evidence for the installed artifact.
|
|
252
|
+
|
|
253
|
+
### Evidence
|
|
254
|
+
|
|
255
|
+
The repository includes a synthetic transport test and a durable SQLite fixture covering restart and scoped logout.
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## FAQ
|
|
260
|
+
|
|
261
|
+
### Why
|
|
262
|
+
|
|
263
|
+
A browser can lose access to a provider's first-party cookies during a cross-site form submission. The handoff preserves the request until the provider can resolve the session.
|
|
264
|
+
|
|
265
|
+
### How
|
|
266
|
+
|
|
267
|
+
Supply a browser-binding value when staging an attempt and again when consuming it.
|
|
268
|
+
|
|
269
|
+
### When
|
|
270
|
+
|
|
271
|
+
Use confirmation when an active issuer session is present and the validated ID token hint does not identify that session.
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Documentation and Related Packages
|
|
276
|
+
|
|
277
|
+
### More Documentation
|
|
278
|
+
|
|
279
|
+
See the OIDC RP-initiated logout specification and the repository SSOT for the provider runtime contract.
|
|
280
|
+
|
|
281
|
+
### Related Packages
|
|
282
|
+
|
|
283
|
+
The TBA OIDC logout router provides GET and POST carriers. The TBA OIDC relying-party protocol constructs and validates the client's side of the flow.
|
|
284
|
+
|
|
285
|
+
### Project Links
|
|
286
|
+
|
|
287
|
+
<!-- readme-standards:begin project-links -->
|
|
288
|
+
- [Documentation](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout#readme)
|
|
289
|
+
- [Homepage](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout#readme)
|
|
290
|
+
- [Issues](https://github.com/tigrbl/tigrbl_auth/issues)
|
|
291
|
+
- [PyPI](https://pypi.org/project/tba-runtime-oidc-provider-logout/)
|
|
292
|
+
- [Repository](https://github.com/tigrbl/tigrbl_auth)
|
|
293
|
+
- [SSOT](https://github.com/tigrbl/tigrbl_auth/blob/master/.ssot/registry.json)
|
|
294
|
+
- [Source](https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout)
|
|
295
|
+
- [pypi: tba-runtime-oidc-provider-logout](https://pypi.org/project/tba-runtime-oidc-provider-logout/)
|
|
296
|
+
<!-- readme-standards:end project-links -->
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## Contributing
|
|
301
|
+
|
|
302
|
+
### How to Contribute
|
|
303
|
+
|
|
304
|
+
Add a synthetic fixture when changing the provider adapter contract or lifecycle rules.
|
|
305
|
+
|
|
306
|
+
### Development Setup
|
|
307
|
+
|
|
308
|
+
Use the repository's uv-managed development environment to run the focused tests and package checks.
|
|
309
|
+
|
|
310
|
+
### Notes for Maintainers
|
|
311
|
+
|
|
312
|
+
Treat exact redirect authorization, scoped revocation, and atomic consumption as compatibility requirements.
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## Governance
|
|
317
|
+
|
|
318
|
+
### Ownership and Decision Making
|
|
319
|
+
|
|
320
|
+
TBA owns the transport-neutral lifecycle. The consuming provider owns deployment identity policy and validates requests using its registration and session data.
|
|
321
|
+
|
|
322
|
+
### Standards and Policies
|
|
323
|
+
|
|
324
|
+
Use the repository package and README policies for changes to this runtime.
|
|
325
|
+
|
|
326
|
+
### Lifecycle and Migration
|
|
327
|
+
|
|
328
|
+
Move transport binding first, then wire durable adapters and verify existing issuer and client configurations.
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
## License and Attribution
|
|
333
|
+
|
|
334
|
+
### License
|
|
335
|
+
|
|
336
|
+
<!-- readme-standards:begin license -->
|
|
337
|
+
Licensed under `Apache-2.0`. See [LICENSE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/LICENSE).
|
|
338
|
+
<!-- readme-standards:end license -->
|
|
339
|
+
|
|
340
|
+
### Notices
|
|
341
|
+
|
|
342
|
+
<!-- readme-standards:begin notices -->
|
|
343
|
+
See [NOTICE](https://github.com/tigrbl/tigrbl_auth/blob/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout/NOTICE) for attribution.
|
|
344
|
+
<!-- readme-standards:end notices -->
|
|
345
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
tba_runtime_oidc_provider_logout/__init__.py,sha256=cmeHv-4NBJTx54CE_8UFHUsZNmib_-4Fw3CibWTguro,607
|
|
2
|
+
tba_runtime_oidc_provider_logout/contracts.py,sha256=y8cMejEtIljjy9v4A2uyRTJzW9nOfO5Gf0ywDXmy0ZM,1884
|
|
3
|
+
tba_runtime_oidc_provider_logout/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tba_runtime_oidc_provider_logout/runtime.py,sha256=V0yQc3WPjtDhOPudGiROixR-9j97IrZWRaHELuUfii8,6650
|
|
5
|
+
tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/METADATA,sha256=N0Nvac888TUsFuJuSFal-tjQcSyRPA0ZMtaeDtL2iIE,15329
|
|
6
|
+
tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
7
|
+
tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
8
|
+
tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/licenses/NOTICE,sha256=tdkEtta3dxhydgsfJD757ZFqkS1pVgKG2Xc-z560u9M,392
|
|
9
|
+
tba_runtime_oidc_provider_logout-0.4.0.dev0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Tigrbl Auth (TBA)
|
|
2
|
+
|
|
3
|
+
Project: https://github.com/tigrbl/tigrbl_auth
|
|
4
|
+
Attribution: Jacob Stewart and the Tigrbl Auth contributors.
|
|
5
|
+
|
|
6
|
+
Distributed under the Apache License, Version 2.0.
|
|
7
|
+
See the accompanying LICENSE file for the license terms.
|
|
8
|
+
|
|
9
|
+
Distribution: tba-runtime-oidc-provider-logout
|
|
10
|
+
Source: https://github.com/tigrbl/tigrbl_auth/tree/master/pkgs/060-runtime/tba-runtime-oidc-provider-logout
|