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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTE0MzUsIm5iZiI6MTcyMTQ1MTEzNSwicGF0aCI6Ii8xMzk2NzM5My8zMTA5ODEwMDQtMTBjYjc1ZTUtYzQxOC00NDkyLTk0ZDctZWMwNTYxZmEyNTNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDA0NTIxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmMDI5YjhjMWM4ZTNiNzQ5OTM0MTc0NzFkYjgxYTZkYjRlNDUzY2FiNjhkMDYyMjI2MTY5NDk1Njk1NDliYzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.q8AJQFLaEW5qjHPdTLefGzF7yZZcCLn9YikwYrv6RLg)
![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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0NTE0MzUsIm5iZiI6MTcyMTQ1MTEzNSwicGF0aCI6Ii8xMzk2NzM5My8zMTA5ODE2MjItN2EwMjQyMTUtZDFlMC00YTgyLWFhYzEtOWU5YTk1NDk1Yjg1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDA0NTIxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2NzUzMTAyMTMyOTBmZjA1ZGVlZWYxN2Y0YTI0YzA5N2ExODA5ZmRkYmFjYmNjOWRmMWIxZWRiMTIyMjEwOTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tBBr2-822v5klLyUBvJc4vbxC5A08mLYfKeFMRPLExg)
<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.
Related Issues (20)
- bug: Email provider not recognized HOT 4
- Default username as email HOT 3
- feature: add transaction pages HOT 1
- Users not updating on the GUI HOT 3
- Export existing configuration into init_data.json HOT 3
- feature: connect transactions with org or user's balance HOT 1
- Add transcation APIs to Go SDK HOT 1
- Incorrect STYLE opening tags within STYLE-block generated by extendApplicationWithSigninItems HOT 5
- "Form CSS" is not included in output. HOT 4
- Select language and light/dark mode for signin, signup, and error page HOT 4
- Improve social login button HOT 2
- creation of a new organization within an organization HOT 2
- Online demo currently returns 502 HOT 2
- Edit user page display issues HOT 6
- suggest: When you log in to the CASDOOR callback page, it can be deleted to the http of FROM? HOT 3
- error on line 14 at column 168: Attribute xmlns redefined HOT 6
- frontend: add back button in forget password page HOT 1
- java-sdk has no method about policy HOT 3
- Invitation code is mandatory and Github providers automatic registration not be restricted HOT 1
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.