Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add code example for modelling organizations guide #3000

Merged
merged 12 commits into from
Sep 13, 2024

Conversation

sixhobbits
Copy link
Collaborator

Depends on https://github.com/ritza-co/example-modeling-organizations being moved/forked to the Fusionauth GitHub org.

@rideam rideam added the content Alert marketing to this change label Aug 8, 2024
@mark-robustelli mark-robustelli self-requested a review September 12, 2024 21:28
@mark-robustelli
Copy link
Contributor

mark-robustelli commented Sep 12, 2024

@sixhobbits , I have moved the application to the FusionAuth org - https://github.com/FusionAuth/fusionauth-example-modeling-organizations. When running I received the following message:

express-session deprecated undefined resave option; provide resave option app.js:41:9
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option app.js:41:9

It does appear to be running, but can you update to remove those messages?

Copy link
Contributor

@mark-robustelli mark-robustelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks pretty good, just needs a few minor modifications.

@@ -214,23 +244,39 @@ Here's an example of the response from the [Retrieve Grants](/docs/apis/entities
}
```

This response indicates that the User belongs to 3 organizations and has various permissions for each. To manage this in your AwesomeCRM application, you can present an option to the user when they log in, to select the company they'd like to work on initially. This option screen might look like this:
This response indicates that the user belongs to three organizations and has different permissions for each. To manage this in your AwesomeCRM application, you can provide users with an option to select the company they would like to work on when they log in, as in the example below.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the example app, richard is the user with multiple companies.
Screenshot 2024-09-12 at 4 42 39 PM

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the image

rideam and others added 2 commits September 13, 2024 16:03
Co-authored-by: Mark Robustelli <137117976+mark-robustelli@users.noreply.github.com>
# Conflicts:
#	config/vale/styles/config/vocabularies/FusionAuth/accept.txt
@rideam rideam requested review from a team as code owners September 13, 2024 14:14
@rideam
Copy link
Collaborator

rideam commented Sep 13, 2024

@mark-robustelli I opened a PR here FusionAuth/fusionauth-example-modeling-organizations#2 to fix the warnings

express-session deprecated undefined resave option; provide resave option app.js:41:9
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option app.js:41:9

@mark-robustelli mark-robustelli merged commit 082586a into FusionAuth:main Sep 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Alert marketing to this change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants