Page 1 of 1

nuBuilder & SSO

Posted: Tue May 28, 2024 2:04 pm
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.
( ... n-on_(SSO)
The 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:

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 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

add: the sso-login itself works, but no login into nuBuilder will happen

Re: nuBuilder & SSO

Posted: Tue May 28, 2024 2:51 pm
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.

Re: nuBuilder & SSO

Posted: Tue Jun 04, 2024 3:39 pm
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

Re: nuBuilder & SSO

Posted: Tue Jun 04, 2024 4:42 pm
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.

Re: nuBuilder & SSO

Posted: Tue Jun 04, 2024 5:09 pm
by imsv
dear reader (of my problem/wishes)

i've follow all the steps here ... 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)

Re: nuBuilder & SSO

Posted: Tue Jun 11, 2024 12:57 pm
by imsv
does nobody here use nuBuilder with SSO ???

i come defently not further with - PLZ HELP !

Re: nuBuilder & SSO

Posted: Tue Jun 11, 2024 12:59 pm
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 ?

Re: nuBuilder & SSO

Posted: Sat Jun 15, 2024 8:59 pm
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


add: at my next workday in the office (right now i'm at home) i wanna upload here the for other users

Re: nuBuilder & SSO

Posted: Tue Jun 25, 2024 12:09 pm
by imsv
i've installed nuBuilder like the wiki shows - without the part of "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 (→, 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!