Closed Walid-Abdulrazik closed 4 years ago
@Walid-Abdulrazik thanks for your input and sorry for the mess. this project is a little bit not followed as i would like to (i don't have the time anymore) but i hope to have more time soon !!! I've updated the readme and corrected an url to make it work correctly (another issue)
If you clone the project and configure it correctly it should work as expected :
let me know !
don't know why it's not working on your side, make sure you kill all instance before starting again... here's my workflow's url. (has of just now with a fresh clone) (from the network tab of firefox)
and it seems to be exactly the same as yours so, i would think of a miss-configuration on your part...
i downloaded a new clone to a new directory and set the ports right like you said and set startup projects and -> debug
the flow goes as follows with chrome
i do not get any consent screens, do you have any idea what am i doing wrong ?
In Addition , if i go to http://localhost:5000/ and click "Click here to manage your stored grants." and enter the login page and enter the credentials it does the same also and redirects me again to the login page, i think it is an identity server configuration issue on my side ... maybe if you delete your database "TestPolicyServer-IdentityServer-1" and try to remigrate it will help debug this issue...
I tried to re-create the database and saw the i was missing some parameter (not sure that there was a real impact but nevertheless) and updated the seed method. I also updated the readme, to explain that you first need to start the TestIdentityServer project with a /seed parameter to correctly create the 2 users.
Can you try to update the project and try it one more time ?
Sorry for the late reply ...
It works now, i tried to access from internet explorer and it worked, and it turned out to be a problem with old cookies and site settings for the localhost from previous work on chrome which is my default browser..
my bad ...
Thanks alot for your help ...
Can i ask one more question? how do you properly configure this server to work with a sql database instead of the in memory policy configuration?
@Walid-Abdulrazik with pleasure...
this is the part missing from the current form or the repo.
Actually now the : PolicyServer1.EntityFramework.Storage
and PolicyServer1.EntityFramework
project have a lot of the code to make this work and you should manage to use : AddConfigurationStore
instead of AddInMemoryPolicies
...
but it was the next step of the development and i wanted to create some view and controller (rest api) to let the user manage the user rights... (exactly in the same way as IdentityServer)
In the current state, i think it's not usable now... sorry
I tried this code and when i run the mvc client, it connects to the identity server login page but when i enter the credentials and press log in , it returns again to the login page without errors ... if i try to enter false credentials it gives an error username and password ...
Am i missing something ?