Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

nuBuilder & SSO Topic is solved

Questions related to installing, updating, setting up and configuring
Post Reply
imsv
Posts: 6
Joined: Tue May 28, 2024 1:14 pm
nuBuilder Version: 4.5
Been thanked: 3 times

nuBuilder & SSO

Unread post by imsv »

dear nuBuilder user and admins

I am trying to configure nuBuilder with sso. unfortunately the "Single_sign-on_(SSO)" howto is no longer up to date.
(https://wiki.nubuilder.cloud/index.php? ... n-on_(SSO)
The app.py file (from M$) has different code than described in the how-to.
For example, the how-to said:

5b. In the function that starts with:

@app.route("/")
def index():

Replace the line

return render_template('index.html', user=session["user"], version=msal.__version__)



however, this line of code can be found in the app.py from M$:

return render_template('index.html', user=auth.get_user(), version=__version__)

do any of you have nuBuilder running with SSO? can anyone help me out? i'm not a programmer, just a power user in a non-profit environment.
any hints or tips on how to get this up and running would be greatly appreciated

sorry for my EN, not my 1st language
sincerely

add: the sso-login itself works, but no login into nuBuilder will happen
kev1n
nuBuilder Team
Posts: 3979
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 5 times
Been thanked: 13 times
Contact:

Re: nuBuilder & SSO

Unread post by kev1n »

Hello imsv and welcome to nuBuilder! (Herzlich willkommen!)

Unfortunately I have to inform you that the SSO functionality is currently not supported by the nuBuilder team.
But you could try to send a private message to user incoherence (he implemented SSO ).

Please let me know if you have any further questions.
imsv
Posts: 6
Joined: Tue May 28, 2024 1:14 pm
nuBuilder Version: 4.5
Been thanked: 3 times

Re: nuBuilder & SSO

Unread post by imsv »

the function of SSO within nuBuilder is simply a joke and should be removed from the futures list of nubuilder.
many times i tried, no chance - it defently not working
kev1n
nuBuilder Team
Posts: 3979
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 5 times
Been thanked: 13 times
Contact:

Re: nuBuilder & SSO

Unread post by kev1n »

There's currently no official support for SSO by the nuBuilder team.
The SSO setup relies on external resources and might require additional configuration depending on your environment.
It's possible the functionality might be affected by compatibility issues with newer versions of nuBuilder.
While the creator of the tutorial was able to make SSO work, there are known challenges. If you can share which specific step you're encountering issues with, it would be helpful in troubleshooting the problem.
Removing SSO entirely from nuBuilder would be a last resort. Let's see if we can work together to get it functioning for you.
imsv
Posts: 6
Joined: Tue May 28, 2024 1:14 pm
nuBuilder Version: 4.5
Been thanked: 3 times

Re: nuBuilder & SSO

Unread post by imsv »

dear reader (of my problem/wishes)

i've follow all the steps here https://wiki.nubuilder.cloud/index.php? ... n-on_(SSO) -also the M$ stuff to get ms-identity-docs-code-python/flask-web-app

i've running nuBuilder NOT in the root of Apache, it's located at https://mydomain/nubuilder
i've configured Apache as in the wiki - the wsgi_sso is located at https://mydomain/sso (within nubuilder pysical folder: /nubuilder/wsgi_sso)

when i hit the button on nubuilder "SSO Log in" i came to the login senario of our SSO-Provider (Azure). The login process works so far, but it come back to the URL :http://mydomain/sso - with the two possible links
- Cal a downstream API
- Logout

(see attachment)

both links dint work - both ending at https://mydomain/call_downstream_api or https://mydomain/logout - instead of ..../sso/logout or .../sso/call_downstream_api
when i fill the URL manualy into browser (/sso/logout) just this works - a logout is successfull.

in the documents i cant find any further information what is to do. i'm not a programmer or software engeneer. i hat never before troubles like this.

sorry, I am very disappointed past hours of try, try and try.

what i must do for to have nuBuilder with SSO login? does anyone have any idea what I am doing wrong ?
many thank for any information (or solution)

(excuse to everbody, EN is not my 1st language)
Attachments
nubuilder-sso-ending.png
nubuilder-sso-ending.png (19.48 KiB) Viewed 1578 times
imsv
Posts: 6
Joined: Tue May 28, 2024 1:14 pm
nuBuilder Version: 4.5
Been thanked: 3 times

Re: nuBuilder & SSO

Unread post by imsv »

does nobody here use nuBuilder with SSO ???

i come defently not further with - PLZ HELP !
kev1n
nuBuilder Team
Posts: 3979
Joined: Sun Oct 14, 2018 6:43 pm
nuBuilder Version: 4.5
Has thanked: 5 times
Been thanked: 13 times
Contact:

Re: nuBuilder & SSO

Unread post by kev1n »

kev1n wrote: Tue May 28, 2024 2:51 pm But you could try to send a private message to user incoherence (he implemented SSO ).
Were you able to get in touch with incoherence ?
imsv
Posts: 6
Joined: Tue May 28, 2024 1:14 pm
nuBuilder Version: 4.5
Been thanked: 3 times

Re: nuBuilder & SSO

Unread post by imsv »

yes, i hat contact with him. Unfortunately, he couldn't tell me what the problem was either

how ever, past a long time of try&error i've figured out why - it works now.
the last part, reason, was (where incoherence could not help because of not having this info/config of my enviroment) a missconfigured apache config :roll: this was the reason of why i was not automaticly loged-in in nubuilder.

well; a lot of dust - i've to say PLEASE EXCUSE ME for my words about nuBuilder and SSO would not work

thank you all for your attention

sincerely

add: at my next workday in the office (right now i'm at home) i wanna upload here the app.py for other users
imsv
Posts: 6
Joined: Tue May 28, 2024 1:14 pm
nuBuilder Version: 4.5
Been thanked: 3 times

Re: nuBuilder & SSO

Unread post by imsv »

i've installed nuBuilder like the wiki shows - without the part of app.py(.txt). "my one" you could find here as attachment.
in this i've also added the folder/place where the flask-session-files would be stored (SESSION_FILE_DIR) because when it running on linux system, the root folder is not accessable for the task who have running nubuilder (sso / flask). of sure, this part could also be in the .config file where other stuff is defined.
keep in mind: the hole installation of nuBuilder MUST be in the root folder of your http-service (in apache it is the "DocumentRoot"). when not, the SSO (wsgi) dint work successfull.

one more important step/thing:
If there is no access level named Default defined in nubuilder, you will probably get an error messing like the following:

SSO login...

Access Forbidden.
Error during SSO login. Internal information: There must be exactly one entry in "Access Levels" with "Description" of Default but found 0

Log in not using SSO (→ https://your.host.name/), create an access level having the description Default and try again. This should do the trick.

well, now i hope someone can also use the sso functionality with my addional information in case of nuBuilder and SSO

have a nice day!
Attachments
app.py.txt
(3.42 KiB) Downloaded 24 times
Post Reply