abbadon420

joined 1 year ago
[–] abbadon420@lemm.ee 3 points 2 days ago (1 children)

This is actually pretty factual, as far as Trump posts go

[–] abbadon420@lemm.ee 1 points 3 days ago

Good luck with that

[–] abbadon420@lemm.ee 1 points 3 days ago (1 children)

Obviously my comment came before their's, but thanks anyways

[–] abbadon420@lemm.ee 2 points 4 days ago

You will put that frown down, or I'll take you to brown town

[–] abbadon420@lemm.ee 3 points 4 days ago

There's also the old dns solution. That's what I did when they tried to block torrent sites before.

[–] abbadon420@lemm.ee 18 points 4 days ago

You poor thing. Thoughts and prayers

[–] abbadon420@lemm.ee 4 points 4 days ago (1 children)

Jesus fuck, does everything have to be political? I guess it does

[–] abbadon420@lemm.ee 2 points 4 days ago

I've recently been reading about the 6 dimensions of societies by Geert Hofstede. I think the voices in you head translate very well to those dimensions. It makes sense that in a more matriarchal society, you'd hear your dead relatives and in a more communal society you'd hear people laughing at you. While in a more patriarchal and individual society like the US the voices are more antagonising.

[–] abbadon420@lemm.ee 3 points 5 days ago* (last edited 5 days ago)

That figure is taking a bold risk, a risk

[–] abbadon420@lemm.ee 0 points 5 days ago (3 children)

Maybe "Diddy" sounds kind of molesty. I don't know if that's it, but I don't know what else it could be.

[–] abbadon420@lemm.ee 1 points 5 days ago

We can go even deeper

 

So I'm making a project in SpringBoot with Oauth security.

If I use Auth0 as my Authorization Server, I can register an application there and just say that I want user to be able to login with Google an Facebook. That's all it takes.

If I use Keycloak as my Authorization Server, I can also have users choose Google or Facebook as there prefered login, but in order to provide that, I have to register my app with Google and Facebook first.

So how come it's so easy with Auth0 and a little less easy with Keycloak? Is it a contract thing, does Auth0 have contracts with all these providers or something?

 

I came across this post (and more like it) claiming extensions to be a good, or at least different, solution for mapping DTO's.

Are they though? Aren't DTO's supposed to be pure data objects? I've always been taught to seperate my mappings in special mapping services or mapping libraries like MapStruct and ModelMapper for implementing the good practice of "seperation of concerns".

So what about extensions?

 
 

I get postman exports from students which I use to check their work. The authorisation of those requests now often contain hardcoded jwt tokens that are invalid by the time I get to checking them and I have to change every individual request with a global variable.

I do instruct my students to use variables, but there's always a couple who just don't, but that's a whole different issue.

Right now I'm using a regex find and replace to remove the Request authorization header in the json export file (which than defaults to 'inherit from parent'). This sort of works, but isn't ideal.

Do any of you know if postman offers an easier solution for this?

 

The world has always been going the shit and will continue to go to shit until the end of time. It takes mountains to influence the tides of nations. You should take the responsibilities you can bear, but no more.

 
 
 

The added image is a screenshot of how I see gifs in connect. There's supposed to be buttons in the bottom right corner, I've been told. But I can't see them. Do I need to add them in some setting somewhere?

 

I know how to implement basic oauth. My problem is that if I make a simple security filter like:

` @Bean

public SecurityFilterChain configure(HttpSecurity http) throws Exception {
    http
            .authorizeHttpRequests(authorize -> authorize
                    .anyRequest().authenticated()
            )
            .oauth2Login(withDefaults());
    return http.build();
}`

Than I can adress @GetMappings in my browser and get prompted a oauth login screen and login there, but I can't adress a PostMapping or GetMapping in postman, because it doesn't redirect to a login screen (you get the html for the login screen as the ResponseBody in postman)

I can get a valid acces token from auth0 via 'https://{yourDomain}/oauth/token', but if I simply pass that jwt along as a "Bearer token" in postman, it doesn't work. It still shows me the login-screen-html in the response body.

It seems to me there's two things I can do:

  • Make sure postman bypasses the login screen. I maybe don't really want to do that, since I want my backend and frontend to communicate their security through jwt. Or else I have to convince other people (from a different department) to change the way they implement frontend security, which is a pain for everyone. (If it needs to happen, it needs to happen though)
  • Make sure the backend parses the jwt somehow. Maybe an extra Filter that checks the jwt's validity with the provider? I'm not sure how to tackle this.
view more: ‹ prev next ›