Errors while trying to build a VSA template
https://github.com/viceroypenguin/VsaTemplate/
I got errors while trying to build this template
GitHub
GitHub - viceroypenguin/VsaTemplate
Contribute to viceroypenguin/VsaTemplate development by creating an account on GitHub.
32 Replies
@viceroypenguin | 🦋🐧
I’ll keep this unread and answer this afternoon. Am busy this morning and can’t go into detail atm.
ok, looks like it's tryign to connect to localhost, with blank username and blank password. is this what you intended? you'll need to point this to a proper mssql server, with the right username/pass that has enough perms to create and drop a database.
Happy new year I hope you had fun time with family and loved ones
I created new user and enabled on server security allow login with user and password and it worked connecting using same creds in Server Manager
added
%3BEncrypt=False
to scaffold connection string and it worked now
inside Web/secrets.json
debug program.cs, breakpoint on line 33, and check that
DbContextOptions:ConnectionString
has a value
oh. the sourcegen isn't working right. hold onit's when running Web project
yeah, but the bug is in the sourcegen project.
ConfigureOptionsGenerator.cs:L15 - change to
"VsaTemplate.ConfigureOptionsAttribute"
same for EnumDatabaseSyncGenerator:L16 - add VsaTemplate.
to the beginning of that string too
i'll fix it in my next release of the vsa tempalteit worked now
should I open a gh issue
nah, i've got it changed on mine already
so you can remember it?
okay cool
thanks
sure!
I added to Auth0 the redirect URL
also in configurations you are not using client secret, I am familiar with google auth, and it requires the client secret to be also specified
it's
https://localhost:7013/callback
if i remember right, the secret is only necessary for JS API with an API server
I figured it out, but still gives an error
which is probably where the thing will go next, but i haven't gotten there.
with the existing stuff, i haven't needed the secret value
I see
so what error are you getting now?
I just need the thing to work, I need to convert it to API based and upgrade to .net 8
I am trying to make my own version out of this and start building my production API using it
one in picture above
this
interesting...
on the auth0 side, do you ahve a connection set up to authenticate users?
something like
yes
hmm....
if you go here
do you have the app enabled for the connection?
I created new app
now it's working
there's one last thing that i didn't document that i need to
you have to finagle auth0 to pass roles
which i don't know why they don't share roles by default
I am new to auth0, I will check how I can do that
under Actions > Flows > Login
add a new flow
add a new custom action "Add Roles to ID"
did that
when you get to the code, update the post login method to as such:
nothing changed
before was working without doing that
like I was able to login and create features
before and after is the same
if you add yourself to the
Admin
role
then you'll have access to hangfire, swagger, etc.
ahh okay, I will take a look at that
all working now thanks
sure thing!