Comments (8)
@tangyang9464 @JalinWang @imp2002
from casdoor.
@lajoll1 can you provide more details? Like what SAML field should be provided? In what format? It's better to not require us to setup a Nextcloud instance by ourselves
from casdoor.
Ok, i'll try giving some more details.
So, on the nextcloud side, you've got these parameters.
If on casdoor's side, I add a custom fixed string attribute (let's say named "Group", with value Group1)
and set in nextcloud's field the attribute Group in the appropriate field, as in the following screenshot:
![Capture d’écran 2024-03-07 à 18 31 24](https://private-user-images.githubusercontent.com/13967393/310981004-10cb75e5-c418-4492-94d7-ec0561fa253a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUzMTE3ODcsIm5iZiI6MTcxNTMxMTQ4NywicGF0aCI6Ii8xMzk2NzM5My8zMTA5ODEwMDQtMTBjYjc1ZTUtYzQxOC00NDkyLTk0ZDctZWMwNTYxZmEyNTNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTEwVDAzMjQ0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThmNDQ1OGEzMjk2YjgxMmZhOWY2M2MxNTk1MGYyMDhjNjA0YjkxZDYzOTk3MjRiY2YzNzgzZWNiMzE0NzUzNTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vLHVszVjoSTkNwZ31mv9DaFtYIYCbZz4zVEDRblO7UQ)
![Capture d’écran 2024-03-07 à 18 33 33](https://private-user-images.githubusercontent.com/13967393/310981622-7a024215-d1e0-4a82-aac1-9e9a95495b85.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUzMTE3ODcsIm5iZiI6MTcxNTMxMTQ4NywicGF0aCI6Ii8xMzk2NzM5My8zMTA5ODE2MjItN2EwMjQyMTUtZDFlMC00YTgyLWFhYzEtOWU5YTk1NDk1Yjg1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTEwVDAzMjQ0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2M2UzMjE2M2Q5MTk4YjM5N2MzN2RlOTdlNjY4Y2I1YzFjYzNhNGM0ZTk3YjQ5MDE1NTE5NzY3YjRiYmRiYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ReGvSJ89gYPV8buB4gRggpzFSGioQOHzqlmH--ZgSzc)
<Attribute Name="Group">
<AttributeValue>Group1</AttributeValue>
<AttributeValue>Group2</AttributeValue>
</Attribute>
Does that answer your question ?
from casdoor.
@lajoll1 what about using the similar format like Roles? Can you check if the format is OK? If OK, we will add Groups similarly.
Lines 113 to 123 in c532a5d
from casdoor.
Indeed! Feel like it might work.
Created a fake role.
I can't see the "Roles" attribute in the SAML metadata in the created application.
How can I test it ?
Thanks for your help
from casdoor.
@lajoll1 debug it, make sure getPermissionsAndRolesByUser()
returns non-empty roles
from casdoor.
Sorry my question might look stupid but i'm not a dev and never worked with Go.
How am I supposed to call the function in that case ?
from casdoor.
Already has this feature
from casdoor.
Related Issues (20)
- [Bug] Auto-login causing AuthCodeWithPKCE Failures HOT 1
- webhook for signup via social login doesn't fire, signup through login ui will fire webhook HOT 3
- support self-host gitea login casdoor HOT 2
- How to perform database migration after Casdoor update? HOT 2
- GET /api/user no match 403 HOT 3
- Payment providers from other organizations not showing up in the list HOT 2
- User passwords visible in Logging & Auditing Records on UI HOT 1
- Cannot edit `app-built-in` default application through `init_data.json' HOT 2
- Question: Token is not valid yet HOT 7
- Cannot delete `buil-in` org and `build-in` application when edit config in `init_data.json` HOT 2
- Cannot delete sessionId in DB when recreate `casdoor` HOT 12
- How to verify whether the access token is expired or invalid? HOT 4
- [feature] support checking whether send-webhook API has error HOT 1
- After the /api/logout interface is invoked, casdoor is still logged in HOT 2
- Bug in sync database HOT 5
- StaticFilter doesn't 404 properly HOT 4
- face authentication without typing in the username HOT 5
- WeCom Login URL Need update HOT 1
- Login field is case sensitive and untrimmed HOT 2
- Where is the definition of "POST /api/enforce"? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casdoor.