Commit Graph

16 Commits

Author SHA1 Message Date
Michal Arbet
eea81cef1e Fix skyline-apiserver on python3.11
Bump pydantic version which fixes skyline-apiserver
when running under python3.11.

Closes-Bug: #2047145
Change-Id: Idb1897f64ffaf0cd0fbee4f7f198935386a5f599
2024-04-08 17:11:16 +08:00
Wenxiang Wu
ce10b6691f fix: user login failure due to no role assignment to its default project
This bug start from: https://review.opendev.org/c/openstack/skyline-apiserver/+/901229

Closes-Bug: #2049719
Change-Id: Icd7dbd5128dc8f4eb83a09d3304726ebb96cb074
2024-01-18 15:51:40 +08:00
Arnaud Morin
51a5b4a483 Use service_type instead of service_name
When retrieving endpoints from keystone catalog, it's better to use
service_type rather than service_name because the name can be arbitrary
(some operator use custom names) while the service_type should always be
consistent.

Change-Id: I966f2d9f40b8306ba645363a4967139f44d6adde
Signed-off-by: Arnaud Morin <arnaud.morin@gmail.com>
2023-12-06 23:13:56 +01:00
Boxiang Zhu
55adae48a5 fix: Use system session to handle
Use system session to handle token data and user

Change-Id: I3b0534c4a5097553e3689fcaf7915c4be6df1fe3
2023-11-20 13:50:55 +08:00
Boxiang Zhu
235f7fb286 feat: Add default_project_id
1. add default_project_id into profile to return
2. if user has default_project_id, then we will login into
this project as default.

Change-Id: I147f7866163ae4d102e83f7c28bbf0077f463974
2023-11-17 18:22:54 +08:00
yangshaoxue
1cedd57d6a fix: fix login API error message
the login API does not return an error message

Change-Id: I76be8ca033effe8da98b6e0f5281561b183b6266
2023-11-02 16:02:06 +08:00
Boxiang Zhu
9c4f5e5e74 feat: Add time_expired into cookie
Now the expired time for skyline and keystone is not the same
value. Sometime, when the token of keystone is valid but the
jwt token of skyline-apiserver is invalid.
The skyline-console will send the request to backend service
and then get 401 from skyline.
So we add time_expired into cookie, then skyline-console can
check whether time expired or not.

Change-Id: Id1d3a83eb433c18e88828115e8bd744151fb14f7
2023-06-05 16:40:49 +08:00
Danny Webb
de22d3ba3b change sso port to be optional
request.url.port can return None in the case of default ports (80,443)

Change-Id: I07b5fdf11199afefd2996ff36c6e997e52037308
Signed-off-by: Danny Webb <danny.webb@thehutgroup.com>
2023-04-04 15:27:07 +00:00
yangshaoxue
ceabe71b7f feat: Add cafile conf
Add cafile conf and support keystone ssl verify

Change-Id: Id82f49009e2e6778568c629b9fe66e3e50cf73d7
2022-12-15 18:20:49 +08:00
Zuul
1730bc5129 Merge "fix: Add enable field in profile" 2022-08-26 07:16:09 +00:00
yangsngshaoxue
85da8bd976 fix: Add enable field in profile
Add enable field in profile

Change-Id: I1b7b314d49dcd08e8b01be090a7d5206c2f83d4f
2022-08-26 13:14:00 +08:00
Boxiang Zhu
3ccfeefb6c chore: Add description for api params
Add description for api params.

Change-Id: I2f245f52a610dfeb20e8973bcf2b3dec7e000fb8
2022-08-25 17:41:06 +08:00
yangsngshaoxue
8fadde52bf fix: Fix empty projects in profile
Fix empty projects in profile when using sso login

Change-Id: I2296cc88f04e3a3eeb2c51d8e83335923e0e5353
2022-08-24 10:57:16 +08:00
yangshaoxue
cbabcbce89 feat: Support SSO login via openID
1. add API sso and websso
2. add sso conf

Implements: blueprint skyline-sso-oid
Change-Id: I352200bb2ebf426adaea71826253730c51eeee03
2022-08-11 17:35:07 +08:00
zhu.boxiang
7eaa53c9db refactor: Adjust the common and contrib schemas
1. adjust the common schemas
2. adjust the contrib schemas
3. just use schemas directly because all include in __init__.py
4. update swagger.json file

Change-Id: I4b8c366cbb439fbcb7c118329588eab1b31b9370
2022-07-13 10:16:10 +08:00
zhu.boxiang
8cb60f0833 chore: Move skyline_apiserver out of libs
1. move skyline_apiserver out of libs
2. remove libs folder
3. remove old skyline folder
4. adjust zull, devstack and dockerfile

Change-Id: I27a4babd3df077d1dfc7555f67a6ea618d4b2966
2022-05-18 17:21:00 +08:00