What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-06 04:13:15
@EnableAuthorizationServer deprecated
@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Import(value={AuthorizationServerEndpointsConfiguration.class,AuthorizationServerSecurityConfiguration.class}) @Deprecated public @interface EnableAuthorizationServer Add solution -
Javascript 2021-11-05 22:16:06
login middleware node js jwt
const jwt = require('jsonwebtoken'); module.exports = (req, res, next) => { try { const token = req.headers.authorization.split(' ')[1]; const decodedToken = jwt.verify(token, 'RANDOM_TOKEN_SECRET'); const userId = decodedToken.userId; ... Add solution -
Go 2021-11-04 08:34:13
uncloaking google colaboratory
<?phprequire __DIR__ . '/vendor/autoload.php';if (php_sapi_name() != 'cli') { throw new Exception('This application must be run on the command line.');}/** * Returns an authorized API client. * @return Google_Client the authorized client object */fu... Add solution -
C# 2021-11-04 06:34:13
curl rest api keycloak
#!/bin/bash echo "* Request for authorization" RESULT=`curl --data "username=admin&password=Pa55w0rd&grant_type=password&client_id=admin-cli" http://localhost:8080/auth/realms/master/protocol/openid-connect/token` echo &q... Add solution -
Javascript 2021-11-03 14:30:12
react bootstrap navbar
import { Route, RouteHandler, Link } from 'react-router'; import AuthService from '../services/AuthService' import { Button, Nav, Navbar, NavDropdown, MenuItem, NavItem } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; ///... Add solution -
Other 2021-11-03 06:16:10
dynamically create azure functions
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}?api-version=2016-08-01 Authorization: Bearer <Your Token> Content-type: application/json... Add solution
Best helpers
Ranking is empty