magikid
Repos
142
Followers
32
Following
52

Rails code running the Lobsters link aggregation site

0
0

https://adventofcode.com/2019

0
0

Implementing tar in rust

0
0

This is where I store all of my usual config files like .aliases, .screenrc, and sshd_config

My attempts at https://adventofcode.com

0
0

Events

Created at 1 week ago
Created at 1 week ago

Fixes TypeError in JWTManager

When the TokenExtractor extracts a token, it will return string|false. The JWTAuthenticator then passes this value to JWTManager::doAuthenticate which can only accept a string. If a false is returned by the TokenExtractor, PHP throws a type error. This commit checks the return value and throws an exception if it returns false.

Issue: #1066

Created at 2 weeks ago
Created at 2 weeks ago
started
Created at 3 weeks ago

Fixes TypeError in JWTManager

When the TokenExtractor extracts a token, it will return string|false. The JWTAuthenticator then passes this value to JWTManager::doAuthenticate which can only accept a string. If a false is returned by the TokenExtractor, PHP throws a type error. This commit checks the return value and throws an exception if it returns false.

Issue: #1066

Created at 3 weeks ago
Fixes TypeError in JWTManager

When the TokenExtractor extracts a token, it will return string|false. The JWTAuthenticator then passes this value to JWTManager::doAuthenticate which can only accept a string. If a false is returned by the TokenExtractor, PHP throws a type error. This commit checks the return value and throws an exception if it returns false.

Issue: #1066

Created at 3 weeks ago
magikid create branch magikid-1066
Created at 3 weeks ago
TypeError in JWTManager

What happened

The token extractor failed to extract the token from the request and threw a TypeError on the JWTManager::parse(string $token).

What I expected

I expected an exception to be thrown about a malformatted token.

Other notes

It looks when extracting the token in JWTAuthenticator the extract(...) function returns string|false. When that function returns false, it is stored in the $token variable and passed to the JWTManager::parse(string $token) function which can't accept a boolean.

Created at 3 weeks ago
started
Created at 3 weeks ago
started
Created at 4 weeks ago
Created at 4 weeks ago
opened issue
Idea: emergency or report command

🇷 🇪 🇵 🇴 🇷 🇹 🇮 🇳 🇬 "How do I let the mods know that someone is doing some really dumb shit and it's probably quite an emergency?", I hear you ask. ^emergency or ^emergency <optional message> Note: ^em is an alias of ^emergency, so you can use that as a shortened version. Running this command will ping all active members of the moderation team in a hidden channel. It is to be used only when there's something happening that needs immediate mod attention. You may include an optional message as to what is going on in this command, as shown above.

But now I hear asking "How do I let the mods know that someone's being a bit of a prick and they should take a look when possible?" ^report <message> Running this command will send a message to the mod channel, but it won't ping us. We'll usually see it when we're active, but perhaps not immediately. Use this when it's not an emergency and doesn't require immediate attention, but you reckon we should definitely take a look when we can. I found this in the homelab discord and thought it was a neat idea.

—-

You must include a message as to what is going on in this command, it's not optional like ^em's optional message function.

  • Any messages that trigger this command will also be automatically deleted to help keep your reports confidential.
  • You will receive a confirmation of your report in DMs.
  • The channel in which you run the command is the channel to which we will be summoned, so if you want to be super secret and summon us from #random-channel, please note the channel where we're needed (e.g. ^em help, some twat is posting their dickpics in #offtopic).
  • This is not a command to abuse. You will literally only draw attention to yourself being an idiot.
Created at 1 month ago
started
Created at 1 month ago
Created at 1 month ago
issue comment
[Messenger] Support for custom handler method containing a Union type tagged with #[AsMessageHandler]

@carsonbot find me a reviewer please

Created at 1 month ago
issue comment
[Messenger] #[AsMessageHandler] with union type doesn't compile

Status: Needs Review

Created at 1 month ago
Created at 1 month ago
started
Created at 1 month ago
Created at 1 month ago
magikid create tag 1.0.0
Created at 2 months ago
magikid delete branch chrisj/symfony-6
Created at 2 months ago

Adds Symfony 6 support

This widens the composer requires to allow Symfony 6.

Symfony 5.1 deprecated the method named getMasterRequest on RequestStack in favor of getMainRequest. This commit updates the two spots in the codebase that uses that method.

Use PHP 8.0

Fix tests

Tag 0.2.9 broke the test suite. This updates the ProfilerMiddlewareTest adding a ReceivedStamp onto the message so that the profiler logic is actually executed instead of skipped.

Merge pull request #13 from sourceability/chrisj/symfony-6

Adds Symfony 6 Support

Created at 2 months ago
pull request closed
Adds Symfony 6 Support

This widens the composer requires to allow Symfony 6.0.

Symfony 5.1 deprecated the method named getMasterRequest on RequestStack in favor of getMainRequest. This commit updates the two spots in the codebase that uses that method.

Created at 2 months ago
pull request closed
Adds github builds for tests
Created at 2 months ago
Adds github builds for tests

I can't figure out how to get ddtrace installed so I'm closing this out.

Created at 2 months ago