Giter Site home page Giter Site logo

ghengeveld / atlassian-crowd-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pghalliday/atlassian-crowd-client

4.0 4.0 5.0 63 KB

Node.js API & Client for Atlassian Crowd REST API

Home Page: https://github.com/ghengeveld/atlassian-crowd-client#atlassian-crowd-client

JavaScript 100.00%

atlassian-crowd-client's Introduction

Hi, I'm Gert ๐Ÿ‘‹

I'm a full stack software engineer trying to improve the world of frontend development through Component Driven Development and better workflows around it. I work for Chromatic and contribute to Storybook. I also built React Async.

Follow me on Twitter.

atlassian-crowd-client's People

Contributors

drndos avatar ghengeveld avatar nicolaevladescu avatar pghalliday avatar reblace avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

atlassian-crowd-client's Issues

Username not included in Crowd Session?

Looking at the Crowd documentation, it seems that session.validate includes a username:

{
    "expand": "user",
    "token": "abc123",
    "user": {
        "name": "sampleuser"
    },
    "link": {
        "href": "https://crowdserver/crowd/session/abcc123",
        "rel": "self"
    },
    "created-date": 1464453000000,
    "expiry-date": 1464456600000
}

But this is never parsed into the Session object: https://github.com/ghengeveld/atlassian-crowd-client/blob/master/src/models/session.js#L17

Is there any specific reason for being it done like this? can it be added?

cannot authenticate with atlassian-crowd-client

I new in this and I get the error of Error: Invalid Response from Crowd, expecting JSON.
should I change something? here is my code:

var crowd = new atlassianCrowdClient({
  baseUrl: 'http://account.tikab.org/crowd/console/login.action',
  application: {
    name: 'test-app',
    password: 'AbC123456'
  }
});
crowd.session.create('[email protected]', 'Aa123456')
    .then(function (session) {
      console.log('Crowd SSO token is ' + session.token);
    })
    .catch(function(err) {
        console.log('err' + err)
    })

New usermanagement endpoint in Crowd 3.3

There is a new endpoint coming with Crowd 3.3 (/rest/usermanagement/1/authentication/notify). Will this be supported anytime soon? I would happy to create a pull request to get this feature working.

Docs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.