« first day (4724 days earlier)      last day (76 days later) » 

12:00 AM
"Everybody is talking about the weather but nobody does anything about it." -- Mark Twain (source)
 
 
7 hours later…
7:14 AM
Good moaning
 
8:26 AM
oh. Goat moaning
 
Good morning
 
Good morning.
 
Anyone good with AI image generators? I keep trying to somehow expand the image or clone the thing in the middle, but whatever I do seems to always fuck it up: creator.nightcafe.studio/creation/HA9vUVl6ekrGiA2Z2hid
 
 
1 hour later…
mr5
9:38 AM
there is just a lot of developer that is super confused on how OAuth works smh.
I guess the design is not very intuitive enough
 
9:58 AM
true dat
I'm working on Auth0 right now
2
 
Security never is, unless done wrong :/
 
@ntohl Hi working on Auth0 right now, I'm Oak!
4
 
mr5
you have a very long name
 
I tend to think about OAuth as yet another PKI thing where I log into somewhere, get a certificate from them, and show others the cert, and others can just verify it with the provider
 
mr5
10:00 AM
I am contemplating whether to create a Xamarin binding for a native library (official oauth) because Microsoft is too lazy to do it. Not sure how much work it is
 
The technical details can stay in implementing libraries, which is not something I have to build
There's no dotnet oauth library?
 
mr5
there is but its last update was 7 years ago. There is also another which is more recent (4 years) but it seems not similar to the native one
looking at the code, they simply deviate how the official oauth team would have done it
I mean not dotnet general thing, but xamarin/mobile specific where it needs to use the default browser
 
10:43 AM
OAuth? Isn't this that mechanism that allows people to login on website A using website B?
i.e. login to linkedin via google?
 
Correct
 
I'm @Oakbot
 
@ntohl Yes, OakBot here. OAuth is indeed a mechanism that allows users to log in to one website using the credentials from another website or platform. It's commonly used for social login or third-party authentication, such as logging in to a website using your Google or Facebook credentials. It helps simplify the login process and eliminates the need to create separate accounts for multiple websites.
 
You want to login to Website A, but Website A doesn't want to have their own credential DB, or they just want to let you use a nice github/gitlab/microsoft/facebook button.
You press the "Website B" (e.g. Microsoft) button, bringing you to Website B with an attached message "Website A wants authentication".
Website B has a credential DB and you can login to it. Website B may ask you "is it ok that we identify you to Website A when they ask?", which is e.g. github asking you to authorize access of a third party app.
Lemme know if I abstracted away too much information somewhere, I think it's kinda fitting abstraction level to think about it without having information you're gonna forget anyway.
 
10:54 AM
"is it ok that we identify you to Website A when they ask?" they also ask for the scopes. Like Website A wants to know your email and profile pic
you can allow / disallow scopes separately, but usually you won't get to your endpoint, if you don't allow them all
 
11:44 AM
This is... interesting.
I need to set some time aside to be able to focus enough to have an understanding on how it works
One thing I want to understand is, in practice, does the Website A have to have some sort of database for users or can/should it rely only on the OAuth token (?)
 
Yes it needs its own database of users, mostly because when you need a login you're gonna have some data to store for those users too.
 
Yes, I was thinking about the same!
 
Although it might be interesting to build an application that offers only 3rd party login and just...manages all data that belongs to a user with just the email address of said user, without an actual user database.
 
It just doesn't have to implement the authorization / authentication against their own database, instead use OAuth, right?
 
Tbh if I think about it, it might actually work, even though it feels just so...unstable? I don't know.
 
11:53 AM
@Squirrelkiller Wouldn't it still require some sort of storage (?) for OAuth data?
 
Still gotta implement authorization
 
Yea, but instead of relying on internal mechanisms you just rely on OAuth, right?
 
When you get the token, you have to verify the token with the 3rd party.
 
Right
 
Also if you have like, users and admins, you have to somehow assign the roles.
So maybe you need a database for that
 
11:54 AM
So... OAuth would just allow to skip login/register and that's it...
Since you delegate that to 3rd party
 
Correct
 
there is an auth server yes. But it's some layer on top of auth0
oidc or auth0
 
Sounds like an overkill, on the high/architectural level
 
if something includes microsoft.identify, you can start that whole infra on the same endpoint
 
12:08 PM
@Darj Make a suggestion how to make it simpler, and there will most likely be a security hole in it. Go ahead, let's try :D
 
I have other interesting things to do instead, i.e. raising my three kids KEKW
 
sup guys
the weekends close
 
12:24 PM
[Captain Obvious] compression is fun
 
So now I've bought BG3 but also Starfield
got 85h into BG3 and 15h into starfield
thats exactly 100h !
but then I've bought BG3 on release so its not a fair comparison yet
has anyone played one of those games ?
 
Both, yes. Great games so far, I really feel the fallout in starfield.
 
[Captain Obvious] I haven't played either of them
 
12:56 PM
Meme related:
>Microsoft wants to buy us
>How much? 7.5 billion? Perhaps one dollar per each bug?
 
@Squirrelkiller So do I and also every single The Elder Scrolls game
the music even reminds me of morrowind sometimes
 
Morrowind had a really great soundtrack... mmmmhmmm
 
its the best The Elder Scrolls game by far
 
Yes
 
its not even close
 
12:58 PM
No dubstep, no noise, just nice melody not overshadowing anything else
I wonder if they've used real instruments
 
I think Starfield is a great game
ppl were having wrong expectations
the wanted a well written game like Baldurs Gate 3
but in Bethesda games you write your own story
always has been like that
 
My rule is to not talk about things that I don't have contact with/knowledge about so I'll just stay silent with both BG3 and Starfield
 
wise choice
 
I can talk a lot about Terraria and Rimworld though KEKW
 
oh. Rimworld...
 
1:18 PM
object[] receviedEvents = new object[] { receivedData };
new signalRMessage{
 Argument = receviedEvents
}
 
@Sakthivel This looks more...volatile than it needs to be.
 
connection.on<receivedDataType>(async (data) => {
//data is object[]
}
Argument only takes object[] as input
 
Why do new signalRMessage yourself?
 
it comes from a AzureFunction
  _hubConnection.On<DeviceDto>("methodInvokedByAzSignalR", async (data) =>
  {
      DeviceNoiseEventDto noiseEvent = (DeviceNoiseEventDto)data[0];
      await _jsRuntime.InvokeVoidAsync("addStreamingABCEvent", noiseEvent);
  });
signalR message take object[] as input for Argument. The client want to listen .on<DeviceDto> and not .on<object[]>
 
 
4 hours later…
5:08 PM
posted on September 22, 2023 by Katie Savage

We are hosting six office hour training streams for the new C# Certification training content. The post Tune into the C# Certification Training Series appeared first on .NET Blog.

 
mr5
@Sakthivel array of an array?
 
5:30 PM
@Sakthivel Sorry I don't understand the setup here. ASP.NET Core backend with js frontend? Backend is Azure Functions?
Azure Function with Azure SignalR Service?
This setup is new to me I gotta understand what's going on first^^
Haven't played around with that, I heard Azure SignalR Service is costly and I'm afraid of using my free fuck around credits because I don't wanna find out.
 
6:08 PM
I even have a signalR client function taking two separate parameters: connection.On<Player, Player>(nameof(IClientHub.SanteeIs), (santa, santee) => SanteeIs(santee));, I see no reason signalR can't receive an array as parameter.
 
6:48 PM
@Hans1984 I tried playing Starfield, but my potato PC barely runs it.
Nvidia 1070 was top of the line 5 years ago lol
 

« first day (4724 days earlier)      last day (76 days later) »