Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
zeLaur
@zelaur__twitter
so, in your case, what approach did you have on the auth problem, cookie or tokens ?
Aman Kubanychbek
@code4aman
Unfortunately, I have no real experience with tokens based auth on asp.net
zeLaur
@zelaur__twitter
so cookies it is :)
Aman Kubanychbek
@code4aman
In my case - it is OK, in-house project. No public access
Konstantin Tarkus
@koistya
With a token-based authentication, I think you would still need to send it as a cookie, e.g. user enters username/password, clicks Login, that infor is sent to /token endpiont via Ajax, that endpoint generates a new token and sends it to the client in an HTTPOnly cookie (id_token), all subsequent requests to the server will send that token automatically. Then on the server, there should be a middleware that reads cookies.id_token value if it exists, decods it into a User object and puts it into request context so that all the remaining middlewares down the pipeline for that particular request have access to a decoded User object. On the client, if /token endpoint returned "true" or something like that, you can just redirect a user from the /login page to /dashboard etc. window.location.href = '/dashboard',
Master Kwoth
@Kwoth
I guess I am in a wrong place to as a quesiton about aspnetcore-spa yo generator?
Konstantin Tarkus
@koistya
@Kwoth yeah, that's another one, this project includes generator-aspnetcore
geminiyellow
@geminiyellow
hiha~~~ good morning everybody
geminiyellow
@geminiyellow
can i use vs for mac open this project ?
Konstantin Tarkus
@koistya
@geminiyellow hey! Didn't test it with VS for Mac yet..
geminiyellow
@geminiyellow
@koistya yes, not working, and the vs for Mac have some error on the .csproj
Aman Kubanychbek
@code4aman
Anyone else
Mike
@marque0ne_twitter
I'm curious, is there a reason running node run doesn't build the main.js and move it to the distilled folder?
Aman Kubanychbek
@code4aman
Anyone
Aman Kubanychbek
@code4aman
Damn this gitter android client is unusable 😠. Hi, did anybody migrated to webpack v2? I'm experiencing issues with npm run build, however it's absolutely OK if executed with debug flag. The error is in promise inside of bundle command.
Aman Kubanychbek
@code4aman
^ it was a webpack config issue.
Jeppe Terndrup
@terndrup
Hey guys, have any of you had issues with the starter kit in IE / Edge? When I try to run my application it just says '$ is not defined' - as if some of the webpack dependency loading fails
A Test
@atwitest_twitter
Hi! How does it compare to https://reactjs.net ?
omarsiddiqi
@omarsiddiqi
hey fellas wondering if anyone can help me understand my issue.
deployed the app to azure
using local git

but it gives me a HTTP Error 502.5 - Process Failure

Common causes of this issue:

The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port

what am i doing wrong?
any hellp will be appreciated. '
A Test
@atwitest_twitter
Hi @omarsiddiqi this might help aspnet/IISIntegration#252
Jeppe Terndrup
@terndrup
have any of you tested it on .NET Core 1.1.1? It seems to fail to load the .net core project properly and returns an Specify a project or solution file
1.0.1* sorry
Jeppe Terndrup
@terndrup
@koistya
Konstantin Tarkus
@koistya
@terndrup not yet, will try to update to the latest .NET Core version soon, or you can help and send a PR
TanerYavuzCybercom
@TanerYavuzCybercom
In case you run into issues with building with latest commit, add <RuntimeIdentifier>coreclr<RuntimeIdentifier> to PropertyGroup of server.csproj
TanerYavuzCybercom
@TanerYavuzCybercom
Running node run publish deploys successfully, but doesnt include .NET files, only the default files when downloading the repo
TanerYavuzCybercom
@TanerYavuzCybercom
Has anybody tried "node run publish" since last commit?
Alexey
@flcl42
Guys, hello! Sorry for my question, he may look pretty stupid, but I need to understand. Does aspnet-starter-kit became obsolete against react-create-app stack?
Or it uses same webpack/hot reload/etc things as fb boilerplate?
Konstantin Tarkus
@koistya
@flcl42 aspnet-starter-kit is more about back-end part, you can combine that back-end approach with create-react-app on the front-end (though, create-react-app doesn't support server-side rendering, it will be purely a single-page app (SPA)
Alexey
@flcl42
OK, got it, ty
Edson Alcalá
@EdsonAlcala
hey !
Georgios Diamantopoulos
@georgiosd
morning folks
reactjs newbie here - just downloaded the aspnet startet kit (fantastic work!) - what's the preferred way to scaffold components?
Konstantin Tarkus
@koistya
@georgiosd I personally like to use VS Code templates for scaffolding
Andreas Savva
@andreassavva
Hey, really cool project, thanks for that! How do I load a "loading" page while the client is working on fetching data from server?
Konstantin Tarkus
@koistya
@andreassavva for that you may want to fetch data inside "componentDidMount()"
Andreas Savva
@andreassavva
yes, so the routes in router.json are to be used to fetch data that is needed before loading the page?
Andreas Savva
@andreassavva
I meant, the data in the routes, not the routes themselves
Konstantin Tarkus
@koistya
@andreassavva yep, if you need data before rendering, it makes sense to fetch that at routing level, if some data needs to be fetched at some later stage, it's better to do it inside componentDidMount()
Dhallagan
@Dhallagan
Hey, working on VS17 and my browser comes up with a blank screen. I looked like the API is working, so I imagine there's an issue with React Dependencies. Does this make sense? Currently, my solution files only show the server, and server.test directories.
In addition, I went into VS Code and launched from there. re npm intall'd like it was a new project, but same thing.
Josh Williams
@jackjwilliams
Domt suppose there is a non redux version of this kit anywhere?
Dhallagan
@Dhallagan
@jackjwilliams what are you looking for
Dhallagan
@Dhallagan
There's probably a fork out there